/* registration-form.css - Unified Premium Glassmorphic Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* Reset and variables */
.uzaynet-registration * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Glassmorphic Container */
.uzaynet-registration {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    font-family: 'Inter', sans-serif;
    color: #1d1d1f;
}

/* Progress bar & navigation header */
.uzr-progress {
    position: relative;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
}

.uzr-progress__track {
    height: 100%;
    width: 100%;
}

.uzr-progress__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0066ff, #00a3ff) !important;
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.uzr-progress__steps {
    display: none; /* Only show premium smooth fill bar */
}

/* Wizard Steps */
.uzr-step {
    display: none;
    animation: slideUpFade 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.uzr-step.active {
    display: block;
}

/* Form headers */
.uzr-step h2, .uzr-step__title {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    color: #111 !important;
    line-height: 1.3 !important;
}

.uzr-step p.subtitle, .uzr-step__subtitle {
    font-size: 15px !important;
    color: #666 !important;
    margin-bottom: 30px !important;
    line-height: 1.5 !important;
}

/* Premium Selection Cards (Type Cards) */
.uzr-type-cards {
    display: flex;
    gap: 20px;
    margin: 20px 0 35px 0;
}

.uzr-type-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
}

.uzr-type-card span.material-symbols-rounded {
    font-size: 40px;
    color: #0066ff;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.uzr-type-card:hover {
    transform: translateY(-4px);
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.08);
    border-color: rgba(0, 102, 255, 0.2);
}

.uzr-type-card:hover span.material-symbols-rounded {
    transform: scale(1.1);
}

.uzr-type-card.selected {
    background: #fff;
    border-color: #0066ff;
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.12);
}

.uzr-type-card .uzr-type-card__check {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #0066ff;
    font-size: 22px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.uzr-type-card.selected .uzr-type-card__check {
    opacity: 1;
    transform: scale(1);
}

/* Package grid & Premium Cards */
.uzr-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0 35px 0;
}

.uzr-package-card {
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.uzr-package-card:hover {
    transform: translateY(-4px);
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 102, 255, 0.25);
}

.uzr-package-card.selected {
    background: #fff;
    border-color: #0066ff;
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.12);
}

.uzr-package-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.uzr-package-card__price {
    font-size: 26px;
    font-weight: 800;
    color: #0066ff;
    margin-bottom: 12px;
}

.uzr-package-card__desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.uzr-package-popular-badge {
    position: absolute;
    top: 12px;
    right: -32px;
    background: linear-gradient(135deg, #ff9500, #ff5e00);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 30px;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(255, 94, 0, 0.2);
}

/* Premium Buttons Layout */
.uzr-step__actions, .uzr-buttons-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    gap: 15px;
}

.uzr-step__actions button:only-child, .uzr-buttons-row button:only-child {
    margin-left: auto;
}

.uzr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    outline: none;
    text-decoration: none;
}

.uzr-btn--primary {
    background: linear-gradient(135deg, #0066ff, #0052cc);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.15);
}

.uzr-btn--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #0052cc, #0044b3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.25);
}

.uzr-btn--primary:active:not(:disabled) {
    transform: translateY(0);
}

.uzr-btn--primary:disabled {
    background: #e0e0e0;
    color: #8e8e93;
    box-shadow: none;
    cursor: not-allowed;
}

.uzr-btn--ghost {
    background: rgba(0, 0, 0, 0.03);
    color: #444;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.uzr-btn--ghost:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #111;
}

/* Form Cards, Sections & Grid Layouts */
.uzr-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    margin-bottom: 25px;
}

.uzr-form-section-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 30px 0 18px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    letter-spacing: -0.2px !important;
}

.uzr-form-section-title:first-of-type {
    margin-top: 0 !important;
}

.uzr-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.uzr-form-row p {
    display: contents; /* Bypass any auto-injected p tags in layout */
}

.uzr-form-row--two > .uzr-field,
.uzr-form-row--two p > .uzr-field {
    flex: 1;
    min-width: calc(50% - 10px);
}

.uzr-form-row--three > .uzr-field,
.uzr-form-row--three p > .uzr-field {
    flex: 1;
    min-width: calc(33.333% - 13.33px);
}

.uzr-date-row {
    display: flex;
    gap: 12px;
}

.uzr-date-row select {
    flex: 1;
}

.uzr-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.uzr-form-row .uzr-field {
    margin-bottom: 0; /* Handled by row */
}

.uzr-field__label {
    font-size: 13.5px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.uzr-req {
    color: #ff3b30;
    margin-left: 3px;
    font-weight: 700;
}

.uzr-field__input, .uzr-field__select {
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.7);
    color: #1d1d1f;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.uzr-field__input:not(#uzr-eposta) {
    text-transform: uppercase;
}

.uzr-field__select {
    height: 52px !important;
    line-height: normal !important;
    padding: 10px 16px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
}

.uzr-field__input::placeholder {
    color: #999;
}

.uzr-field__input:focus, .uzr-field__select:focus {
    border-color: #0066ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
}

/* Responsive adjustments for fields */
@media (max-width: 600px) {
    .uzr-form-row {
        flex-direction: column;
        gap: 16px;
    }
    .uzr-form-row--two > .uzr-field,
    .uzr-form-row--three > .uzr-field {
        min-width: 100%;
    }
    .uzr-type-cards {
        flex-direction: column;
    }
    .uzaynet-registration {
        padding: 24px 16px;
        margin: 20px 10px;
    }
    .uzr-form-card {
        padding: 20px 15px;
    }
}

/* Validation status styles */
#uzr-verify-msg {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    display: none;
    padding: 10px 15px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
}

/* Spinners */
.uzr-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
    vertical-align: middle;
}

#uzr-verify-spinner {
    display: none;
    margin-left: 8px;
}

#uzr-submit-spinner {
    display: none;
    margin-left: 8px;
}

/* Success Card */
.uzr-success-card {
    text-align: center;
    padding: 20px 20px;
}

.uzr-success-card span.material-symbols-rounded {
    font-size: 72px;
    color: #34c759;
    margin-bottom: 20px;
}

.uzr-success-card__title {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    color: #111 !important;
}

.uzr-success-card__desc {
    font-size: 15px !important;
    color: #666 !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
}

.uzr-success-card__ref {
    display: inline-block;
    margin: 20px 0;
    padding: 15px 35px;
    background: rgba(52, 199, 89, 0.06);
    border: 1px dashed #34c759;
    border-radius: 14px;
}

.uzr-success-card__ref-label {
    display: block;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.uzr-success-card__ref-number {
    font-size: 24px;
    font-weight: 700;
    color: #34c759;
    letter-spacing: 1px;
}

.uzr-success-card__email-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    color: #34c759;
    font-size: 14.5px;
    font-weight: 500;
}

.uzr-success-card__email-note span.material-symbols-rounded {
    font-size: 20px !important;
    color: #34c759 !important;
    margin-bottom: 0 !important;
}

/* Success Icon & Animating Checkmark */
.uzr-success-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.uzr-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #34c759;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #34c759;
    animation: fillCheckmark .4s ease-in-out .4s forwards, scaleCheckmark .3s ease-in-out .9s forwards;
}

.uzr-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #34c759;
    fill: none;
    animation: strokeCheckmark 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.uzr-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: #ffffff;
    animation: strokeCheckmark 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes strokeCheckmark {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scaleCheckmark {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fillCheckmark {
    100% {
        box-shadow: inset 0px 0px 0px 40px #34c759;
    }
}

.uzr-basvuru-no-badge {
    display: inline-block;
    margin: 20px 0;
    padding: 12px 30px;
    background: rgba(52, 199, 89, 0.08);
    border: 1px dashed #34c759;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #34c759;
    letter-spacing: 1px;
}

/* Keyframes */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── SMS Verification UI ─── */
.uzr-sms-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    width: 100%;
}

.uzr-sms-input-group .uzr-field__input {
    flex: 1;
    padding-left: 45px !important;
}

.uzr-phone-icon, .uzr-lock-icon {
    position: absolute;
    left: 16px;
    color: #888;
    font-size: 20px !important;
    pointer-events: none;
    z-index: 2;
}

.uzr-sms-input-group .uzr-btn {
    padding: 14px 22px;
    white-space: nowrap;
    border-radius: 12px;
    height: 52px;
}

.uzr-sms-countdown-text {
    font-size: 12.5px;
    color: #666;
    margin-top: 6px;
    font-weight: 500;
}

.uzr-locked {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #8e8e93 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* ─── Segmented Radios & Address Mirror Cards ─── */
.uzr-radio-options {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    width: 100%;
}

.uzr-radio-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.uzr-radio-card input[type="radio"] {
    display: none;
}

.uzr-radio-card__icon {
    font-size: 22px !important;
    color: #888;
    transition: color 0.25s ease;
}

.uzr-radio-card__text {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.uzr-radio-card:hover {
    background: #ffffff;
    border-color: rgba(0, 102, 255, 0.2);
}

.uzr-radio-card.selected {
    background: #ffffff;
    border-color: #0066ff;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.08);
}

.uzr-radio-card.selected .uzr-radio-card__icon {
    color: #0066ff;
}

.uzr-radio-card.selected .uzr-radio-card__text {
    color: #111;
}

/* Segmented Control (iOS style tabs) */
.uzr-segmented-control {
    display: flex;
    background: rgba(0, 0, 0, 0.04);
    padding: 4px;
    border-radius: 14px;
    gap: 2px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    width: 100%;
}

.uzr-segment-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    font-size: 14.5px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.uzr-segment-item input[type="radio"] {
    display: none;
}

.uzr-segment-item span.material-symbols-rounded {
    font-size: 18px !important;
    transition: transform 0.25s ease;
}

.uzr-segment-item:hover {
    color: #111;
}

.uzr-segment-item.selected {
    background: #ffffff;
    color: #0066ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.uzr-segment-item.selected span.material-symbols-rounded {
    transform: scale(1.1);
}

/* ─── Custom Checkbox ─── */
.uzr-checkbox-wrapper {
    margin-top: 15px;
}

.uzr-checkbox-container {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.uzr-checkbox-container input[type="checkbox"] {
    display: none;
}

.uzr-checkbox-icon {
    font-size: 24px !important;
    color: #888;
    transition: color 0.25s ease;
}

.uzr-checkbox-icon.checked {
    color: #0066ff;
}

.uzr-checkbox-label {
    font-size: 14.5px;
    font-weight: 600;
    color: #333;
}

/* Summary Card stylings */
.uzr-summary-block {
    margin-top: 20px;
    text-align: left;
    background: rgba(0, 0, 0, 0.02);
    padding: 18px 24px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    font-family: inherit;
}

.uzr-summary-block p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #444;
}

.uzr-summary-block p:last-child {
    margin-bottom: 0;
}

.uzr-summary-block strong {
    color: #111;
}

@media (max-width: 600px) {
    .uzr-radio-options {
        flex-direction: column;
        gap: 10px;
    }
    .uzr-segmented-control {
        flex-direction: column;
        gap: 4px;
    }
    .uzr-sms-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    .uzr-sms-input-group .uzr-btn {
        width: 100%;
    }
}

