@font-face {
    font-family: 'Vazir FD';
    src: url('../fonts/Vazir-FD-WOL.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

.smarttick-exam-form-wrap {
    max-width: 920px;
    margin: 36px auto;
    padding: 0;
    direction: rtl;
    font-family: 'Vazir FD', 'Vazir', sans-serif;
}

.smarttick-form-layout {
    display: grid;
    direction: ltr;
    gap: 28px;
    align-items: stretch;
    justify-content: center;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    grid-template-areas: "smarttick-visual smarttick-card";
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.smarttick-form-visual {
    grid-area: smarttick-visual;
    min-width: 0;
    position: relative;
    min-height: 480px;
    direction: rtl;
    background-color: #4a1c8f;
    background-image: var(--smarttick-form-visual);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: 36px;
    box-shadow: 0 28px 80px rgba(103, 54, 207, 0.18);
}

.smarttick-form-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(32, 0, 88, 0.78) 0%, rgba(122, 56, 223, 0.32) 100%);
    z-index: 1;
    pointer-events: none;
}

.smarttick-form-visual-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.3s ease;
}



.smarttick-form-visual-caption {
    position: absolute;
    bottom: 48px;
    right: 40px;
    left: 40px;
    z-index: 2;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.45;

    text-shadow: 0 16px 42px rgba(24, 0, 69, 0.35);
}

.smarttick-form-card {
    grid-area: smarttick-card;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 10px 10px;
    direction: rtl;
}

.smarttick-form-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: center;
    direction: rtl;
    margin-bottom: 18px;
}

.smarttick-form-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 1;

}

.smarttick-form-heading-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.smarttick-form-heading-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    align-items: center;
}

.smarttick-form-back {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(63, 33, 125, 0.1);
    color: #3b207a;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.smarttick-form-back,
.smarttick-form-back span {
    text-decoration: none;
}

.smarttick-form-back:hover {
    background: rgba(63, 33, 125, 0.18);
    color: #2a125a;
    transform: translate(-4px, -50%);
    box-shadow: 0 10px 24px rgba(63, 33, 125, 0.2);
}

.smarttick-form-back:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 86, 212, 0.35);
    transform: translate(-4px, -50%);
}

.smarttick-form-logo {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 28px;
    color: #6f33e3;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.smarttick-form-logo-image {
    display: block;
    max-width: 140px;
    height: auto;
}

.smarttick-form-title {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    color: #3b207a;
    text-align: center;
}

.smarttick-form-subtitle {
    margin: 0;
    font-size: 15px;
    color: rgba(59, 32, 122, 0.68);
    text-align: center;
}

.smarttick-exam-form {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smarttick-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    grid-column: 1 / -1;
}

.smarttick-field--province,
.smarttick-field--city {
    grid-column: span 1;
    gap: 0;
}

.smarttick-field-control {
    position: relative;
    display: flex;
    align-items: center;
}

.smarttick-label {
    font-weight: 500;
    color: #1C1C1C;
    font-size: 15px;
}

.smarttick-label::after {
    content: ' *';
    color: #b184ff;
    font-weight: 700;
    font-size: 14px;
}

.smarttick-field-control input,
.smarttick-field-control select {
    width: 100%;
    height: 52px;
    padding: 0 56px 0 26px;
    border-radius: 12px;
    border: 1.5px solid #D59EF4;
    background: rgba(255, 255, 255, 0.92);
    color: #2f1a63;
    text-align: right;
    box-shadow: 0 14px 36px rgba(213, 158, 244, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.smarttick-field-control select {
    padding: 0 56px 0 72px;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #8b4ff9 50%),
        linear-gradient(135deg, #8b4ff9 50%, transparent 50%),
        linear-gradient(to left, rgba(139, 79, 249, 0.15), rgba(139, 79, 249, 0));
    background-position: left 26px center, left 20px center, left 0 center;
    background-size: 12px 12px, 12px 12px, 52px 100%;
    background-repeat: no-repeat;
}

.smarttick-field-control input:focus,
.smarttick-field-control select:focus {
    outline: none;
    border-color: rgba(137, 76, 246, 0.9);
    box-shadow: 0 0 0 4px rgba(137, 76, 246, 0.22);
    background: #ffffff;
}

.smarttick-field-control input::placeholder,
.smarttick-field-control select::placeholder {
    color: rgba(60, 33, 120, 0.45);
}

.smarttick-field-icon {
    position: absolute;
    right: 22px;
    left: auto;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.68;
    pointer-events: none;
}

.smarttick-field-icon--name {
    background-image: url('../icons/user.svg');
}

.smarttick-field-icon--mobile,
.smarttick-field-icon--landline {
    background-image: url('../icons/call.svg');
}

.smarttick-field-icon--national-code {
    background-image: url('../icons/nc.svg');
}

.smarttick-field-icon--province {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%238A56F5' stroke-linejoin='round' stroke-width='1.5' d='M12 22.5s7.5-6 7.5-12S16.142 3 12 3 4.5 6.358 4.5 10.5 12 22.5 12 22.5Z'/%3E%3Ccircle cx='12' cy='10.5' r='2.25' stroke='%238A56F5' stroke-width='1.5'/%3E%3C/svg%3E");
}

.smarttick-field-icon--city {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Crect width='18' height='12.75' x='3' y='7.5' rx='2.25' stroke='%238A56F5' stroke-width='1.5'/%3E%3Cpath stroke='%238A56F5' stroke-width='1.5' d='M6.75 7.5V5.25A3 3 0 0 1 9.75 2.25h4.5A3 3 0 0 1 17.25 5.25V7.5'/%3E%3Cpath stroke='%238A56F5' stroke-linecap='round' stroke-width='1.5' d='M9 12h6'/%3E%3Cpath stroke='%238A56F5' stroke-linecap='round' stroke-width='1.5' d='M9 15.75h4.5'/%3E%3C/svg%3E");
}

.smarttick-help {
    margin: -2px 4px 0 0;
    font-size: 13px;
    color: rgba(60, 33, 120, 0.65);
}

.smarttick-options {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.smarttick-option {
    flex: 1;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 12px;
    cursor: pointer;
}

.smarttick-option input {
    accent-color: #8d4ff7;
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
}

.smarttick-option span {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(140, 83, 240, 0.22);
    color: #3a1f6f;
    font-weight: 600;
    text-align: right;
    line-height: 1.4;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.smarttick-option:hover span {
    border-color: rgba(140, 83, 240, 0.55);
    background: rgba(244, 236, 255, 0.9);
}

.smarttick-option input:checked+span {
    background: linear-gradient(135deg, #9a6df5 0%, #d16fff 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(146, 78, 240, 0.45);
}

.smarttick-actions {
    margin-top: 8px;
    grid-column: 1 / -1;
}

.smarttick-submit {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 14px;
    background: #AD44DA;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 22px 44px rgba(146, 78, 240, 0.36);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.smarttick-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 60px rgba(146, 78, 240, 0.42);
}

.smarttick-alert {
    margin: 0 0 12px 0;
    padding: 16px 20px;
    border-radius: 18px;
    font-weight: 600;
}

.smarttick-alert-success {
    background: rgba(118, 220, 170, 0.2);
    color: #0f6b3a;
}

.smarttick-alert-error {
    background: rgba(255, 140, 140, 0.2);
    color: #b02020;
}

.smarttick-success-modal {
    position: fixed;
    inset: 0;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
}

.smarttick-success-modal--open {
    opacity: 1;
    pointer-events: auto;
}

.smarttick-success-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(34, 17, 80, 0.58);
    backdrop-filter: blur(4px);
}

.smarttick-success-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 54px 40px 48px;
    border-radius: 36px;
    background: linear-gradient(160deg, #e9fbf4 0%, #f5fffa 100%);
    box-shadow: 0 40px 90px rgba(30, 176, 124, 0.24);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.smarttick-success-modal__close {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #1b1b1f;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.smarttick-success-modal__close:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: scale(1.03);
}

.smarttick-success-modal__close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 167, 119, 0.25);
}

.smarttick-success-modal__icon {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.smarttick-success-modal__icon img {
    width: 44px;
    height: 44px;
}

.smarttick-success-modal__title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #107a55;
}

.smarttick-success-modal__description {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
    color: #2c7557;
}

.smarttick-success-modal__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 16px 28px;
    border-radius: 18px;
    background: #16a777;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.smarttick-success-modal__button:hover {
    transform: translateY(-2px);
    background: #129164;
    box-shadow: 0 18px 44px rgba(18, 145, 100, 0.28);
    color: #ffffff;
}

.smarttick-success-modal__button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 167, 119, 0.25);
}

@media (max-width: 768px) {
    .smarttick-form-layout {
        grid-template-columns: 1fr;
        gap: 18px;
        grid-template-areas:
            "smarttick-card";
    }

    .smarttick-form-visual {
        display: none;
    }

    .smarttick-form-card {
        padding: 24px 20px;
    }

    .smarttick-form-header {
        justify-content: center;
        gap: 12px;
    }

    .smarttick-form-heading {
        justify-content: center;

    }

    .smarttick-form-back {
        width: 38px;
        height: 38px;
        top: 16px;
        transform: none;
    }

    .smarttick-form-back:hover,
    .smarttick-form-back:focus-visible {
        transform: translateX(-3px);
    }
}


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

.smarttick-price {
    margin-top: 18px;
    padding: 16px 22px;
    border-radius: 22px;
    border: 1.5px dashed rgba(141, 79, 249, 0.4);
    background: rgba(141, 79, 249, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #43207d;
    font-weight: 700;
}

.smarttick-price-label {
    font-size: 14px;
    color: rgba(67, 32, 125, 0.7);
}

.smarttick-price-value {
    font-size: 22px;
    font-weight: 800;
    color: #7d3df0;
    letter-spacing: 1px;
}

.smarttick-selection {
    margin-top: 16px;
    padding: 10px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, #9a6df5 0%, #d16fff 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 20px 44px rgba(146, 78, 240, 0.3);
}

.smarttick-selection a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.smarttick-selection a:hover,
.smarttick-selection a:focus-visible {
    color: #ffeefc;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

.smarttick-selection-title {
    font-size: 16px;
}

@media (max-width: 720px) {
    .smarttick-exam-form {
        grid-template-columns: 1fr;
    }

    .smarttick-form-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .smarttick-form-visual {
        min-height: 320px;
        border-radius: 28px;
    }

    .smarttick-form-card {
        padding: 40px 36px;
        border-radius: 28px;
    }
}

@media (max-width: 640px) {
    .smarttick-exam-form-wrap {
        margin: 32px 16px;
    }

    .smarttick-form-card {
        padding: 32px 24px;
    }

    .smarttick-form-logo {
        width: 52px;
        height: 52px;
        font-size: 18px;
        border-radius: 20px;
    }

    .smarttick-form-title {
        font-size: 26px;
    }

    .smarttick-form-visual-caption {
        font-size: 28px;
        right: 28px;
        left: 28px;
        bottom: 32px;
    }

    .smarttick-options {
        grid-template-columns: 1fr;
    }

    .smarttick-field--province,
    .smarttick-field--city {
        grid-column: 1 / -1;
    }

    .smarttick-submit {
        height: 60px;
    }
}

.smarttick-exam-selector {
    width: 100%;
    max-width: 310px;
    min-height: 348px;
    display: grid;
    gap: 10px;
    padding: 28px 24px;
    border-radius: 32px;
    border: 2px solid #f0e8ff;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(69, 41, 136, 0.12);
    direction: rtl;
    font-family: 'Vazir FD', 'Vazir', sans-serif;
}

.smarttick-selector-options {
    display: grid;
    gap: 10px;
    padding: 8px;
    border-radius: 16px;
    border: 1.5px solid #f0e6ff;
    background: #ffffff;
}

.smarttick-selector-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.smarttick-selector-option input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.smarttick-selector-option-visual {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid #e5d8ff;
    background: #ffffff;
    color: #3a216f;
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.smarttick-selector-option:hover .smarttick-selector-option-visual {
    border-color: #c7afff;
    background: #f8f3ff;
}

.smarttick-selector-option-title {
    flex: 1;
    font-size: 15px;
    line-height: 1.4;
}

.smarttick-selector-option-indicator {
    order: -1;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 2px solid #d6c4ff;
    background: #fbf9ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.smarttick-selector-option-indicator::after {
    content: '\2713';
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.smarttick-selector-option input:focus-visible+.smarttick-selector-option-visual {
    box-shadow: 0 0 0 3px rgba(154, 109, 245, 0.28);
}

.smarttick-selector-option input:checked+.smarttick-selector-option-visual {
    border-color: #8e42f6;
    background: linear-gradient(135deg, #a55cff 0%, #7d33f1 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(125, 51, 241, 0.28);
}

.smarttick-selector-option input:checked+.smarttick-selector-option-visual .smarttick-selector-option-indicator {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.smarttick-selector-option input:checked+.smarttick-selector-option-visual .smarttick-selector-option-indicator::after {
    opacity: 1;
    transform: scale(1);
}

.smarttick-selector-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    min-height: 64px;
    padding: 4px 12px;
    color: #3a216f;
    font-weight: 700;
    direction: rtl;
    align-self: stretch;
    width: 100%;
    border-radius: 16px;
}

.smarttick-selector-summary-label {
    font-size: 15px;
    white-space: nowrap;
}

.smarttick-selector-price-amount {
    font-size: 19px;
    font-weight: 800;
    color: #ad44da;
    letter-spacing: 1px;
    direction: ltr;
}

.smarttick-selector-price-currency {
    font-size: 14px;
    font-weight: 600;
    color: #ad44da;
    white-space: nowrap;
}

.smarttick-selector-actions {
    display: flex;
    margin-top: 6px;
}

.smarttick-selector-submit {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 18px;
    background: #ad44da;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.smarttick-selector-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(173, 68, 218, 0.28);
    background: #9e36cb;
}

.smarttick-selector-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(173, 68, 218, 0.35);
}

.smarttick-selector-submit-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 700;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.1);
}


/* حذف هدر و فوتر فقط در صفحه فرم نمایندگی */
.page-id-623 header,
.page-id-623 footer {
    display: none !important;
}

/* حذف فاصله‌های احتمالی قالب اطراف فرم */
.page-id-623 .site,
.page-id-623 .content-area,
.page-id-623 .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* فقط روی صفحه فرم اعمال می‌شود */
.page-id-623 .smartetic-agency-wrapper {
    margin-top: 60px;
    /* فاصله از بالا */
}

/* در صورت نیاز برای موبایل کمترش کن */
@media (max-width: 768px) {
    .page-id-623 .smartetic-agency-wrapper {
        margin-top: 30px;
    }
}