/* ==============================================================================
   TAYYAR INTERACTIVE FREE TRIAL MODAL (CYBER OCEANIC BLUE & CYAN GLASS)
   ============================================================================== */

.trial-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 20px;
    padding-inline: 16px;
    background: rgba(4, 8, 16, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.trial-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.trial-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-block: auto;
    border-radius: 22px;
    background: rgba(10, 18, 32, 0.86);
    backdrop-filter: blur(22px) saturate(165%);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    border: 1px solid rgba(34, 211, 238, 0.28);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.65),
        0 0 36px rgba(6, 182, 212, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding-block: 26px 28px;
    padding-inline: 26px;
    color: var(--text-primary);
    text-align: start;
    overflow: hidden;
}

.trial-modal-dialog::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 14%;
    height: 1.5px;
    background: linear-gradient(90deg,
            transparent 0%,
            #06b6d4 30%,
            #67e8f9 50%,
            #0ea5e9 70%,
            transparent 100%);
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.75);
    pointer-events: none;
}

.trial-modal-close {
    position: absolute;
    inset-block-start: 18px;
    inset-inline-end: 18px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
    z-index: 3;
}

.trial-modal-close:hover {
    background: rgba(6, 182, 212, 0.18);
    border-color: rgba(34, 211, 238, 0.6);
    color: #ffffff;
}

/* Modal Header */
.trial-modal-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-inline-end: 36px;
    margin-block-end: 20px;
}

.trial-shield-badge {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(2, 132, 199, 0.34));
    border: 1px solid rgba(34, 211, 238, 0.45);
    color: #22d3ee;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 8px 20px rgba(2, 132, 199, 0.28);
}

.trial-shield-badge svg {
    width: 22px;
    height: 22px;
}

.trial-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    color: #f8fafc;
}

.trial-modal-sub {
    font-size: 0.84rem;
    line-height: 1.62;
    color: #94a3b8;
}

/* Form Layout & Glass Inputs */
.trial-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.trial-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.trial-field-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
}

.trial-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.trial-input-icon {
    position: absolute;
    inset-inline-start: 13px;
    width: 16px;
    height: 16px;
    color: #38bdf8;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.trial-input {
    width: 100%;
    height: 44px;
    padding-block: 0;
    padding-inline-start: 40px;
    padding-inline-end: 14px;
    border-radius: 12px;
    background: rgba(6, 12, 24, 0.82);
    border: 1px solid rgba(34, 211, 238, 0.22);
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.trial-input::placeholder {
    color: #64748b;
    font-weight: 500;
}

.trial-input:focus {
    background: rgba(8, 16, 32, 0.96);
    border-color: rgba(34, 211, 238, 0.65);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.14);
}

.trial-input--ltr {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.83rem;
    padding-left: 42px !important;
    padding-right: 14px !important;
}

.trial-field-group--ltr .trial-input-icon {
    left: 14px !important;
    right: auto !important;
}

.trial-input--password {
    padding-inline-end: 42px;
}

.trial-pass-toggle {
    position: absolute;
    inset-inline-end: 10px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.trial-pass-toggle:hover {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.1);
}

.trial-field-group.has-error .trial-input {
    border-color: rgba(244, 63, 94, 0.72);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}

.trial-field-group.is-valid .trial-input {
    border-color: rgba(34, 211, 238, 0.52);
}

.trial-field-error {
    font-size: 0.74rem;
    font-weight: 600;
    color: #fb7185;
    min-height: 0;
    line-height: 1.4;
    display: none;
}

.trial-field-group.has-error .trial-field-error {
    display: block;
}

/* Password Strength Meter */
.trial-strength-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-block-start: 2px;
}

.trial-strength-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    flex: 1;
}

.trial-strength-seg {
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.trial-strength-seg.is-weak {
    background: #f43f5e;
}

.trial-strength-seg.is-fair {
    background: #f59e0b;
}

.trial-strength-seg.is-good {
    background: #0ea5e9;
}

.trial-strength-seg.is-strong {
    background: #22d3ee;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.55);
}

.trial-strength-label {
    font-size: 0.71rem;
    font-weight: 700;
    color: #94a3b8;
    white-space: nowrap;
}

/* Turnstile Container & Alert Banner */
.trial-turnstile-box {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trial-global-alert {
    padding-block: 10px;
    padding-inline: 14px;
    border-radius: 11px;
    background: rgba(244, 63, 94, 0.14);
    border: 1px solid rgba(244, 63, 94, 0.45);
    color: #fda4af;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.5;
    display: none;
}

.trial-global-alert.is-visible {
    display: block;
}

/* Submit CTA Button */
.trial-submit-btn {
    position: relative;
    width: 100%;
    min-height: 48px;
    margin-block-start: 4px;
    padding-block: 12px;
    padding-inline: 20px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.26), rgba(2, 132, 199, 0.42));
    border: 1px solid rgba(34, 211, 238, 0.65);
    box-shadow:
        0 10px 26px rgba(2, 132, 199, 0.36),
        inset 0 1px 0 rgba(103, 232, 249, 0.3);
    color: #f0f9ff;
    font-size: 0.92rem;
    font-weight: 800;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.trial-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.38), rgba(2, 132, 199, 0.54));
    border-color: #67e8f9;
    box-shadow: 0 14px 32px rgba(6, 182, 212, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.trial-submit-btn:disabled {
    opacity: 0.68;
    cursor: not-allowed;
}

.trial-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: #67e8f9;
    animation: trial-spin 0.75s linear infinite;
    display: none;
}

.trial-submit-btn.is-loading .trial-spinner {
    display: inline-block;
}

@keyframes trial-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success View */
.trial-success-view {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding-block-start: 6px;
}

.trial-success-view.is-active {
    display: flex;
}

.trial-success-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.24), rgba(2, 132, 199, 0.38));
    border: 1px solid rgba(34, 211, 238, 0.62);
    color: #22d3ee;
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.3);
}

.trial-success-title {
    font-size: 1.28rem;
    font-weight: 800;
    color: #f8fafc;
}

.trial-success-msg {
    font-size: 0.85rem;
    line-height: 1.65;
    color: #cbd5e1;
}

.trial-summary-card {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(6, 12, 24, 0.88);
    border: 1px solid rgba(34, 211, 238, 0.26);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: start;
}

.trial-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.8rem;
}

.trial-summary-lbl {
    color: #94a3b8;
    font-weight: 600;
}

.trial-summary-val {
    color: #f8fafc;
    font-weight: 700;
}

.trial-copy-btn {
    padding-block: 4px;
    padding-inline: 10px;
    border-radius: 7px;
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(34, 211, 238, 0.42);
    color: #22d3ee;
    font-size: 0.72rem;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease;
}

.trial-copy-btn:hover {
    background: rgba(6, 182, 212, 0.26);
    color: #ffffff;
}

@media (max-width: 540px) {
    .trial-modal-dialog {
        padding-block: 22px 24px;
        padding-inline: 18px;
        border-radius: 18px;
    }
}