.ts-pdf-form-wrap {
    max-width: 700px;
    margin: 20px 0;
}

.ts-pdf-open-button {
    display: inline-block;
    padding: 12px 24px;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.2;
}

body.ts-modal-open {
    overflow: hidden;
}

.ts-pdf-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.ts-pdf-modal.is-open {
    display: block;
}

.ts-pdf-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
}

.ts-pdf-modal-dialog {
    position: relative;
    width: calc(100% - 30px);
    max-width: 560px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: 20px auto;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0,0,0,.3);
}

.ts-pdf-modal-inner {
    padding: 30px;
}

.ts-pdf-modal-inner h3 {
    margin: 0 0 22px;
}

.ts-pdf-modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    z-index: 2;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.ts-pdf-form .ts-field {
    margin-bottom: 16px;
}

.ts-pdf-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.ts-pdf-form label span {
    color: #d63638;
}

.ts-pdf-form input,
.ts-pdf-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.ts-pdf-form textarea {
    resize: vertical;
}

.ts-pdf-form .ts-submit,
.ts-pdf-button {
    display: inline-block;
    border: 0;
    padding: 11px 22px;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
}

.ts-pdf-form .ts-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.ts-form-message {
    margin: 12px 0;
    min-height: 20px;
}

.ts-form-message.error {
    color: #b42318;
}

.ts-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

.ts-thankyou-wrap {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px 20px;
    text-align: center;
}

.ts-thankyou-content {
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.ts-thankyou-content h2 {
    margin-top: 0;
}

.ts-thankyou-pdf {
    margin-top: 25px;
}
