/* ============================================================
 * dc-form.css — Free Sample modal styles.
 * Designed to match the theme's dark glass aesthetic without
 * hard-coding theme variables (the theme might evolve).
 * ============================================================ */

.dc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}
.dc-modal.is-open {
    display: flex;
}

.dc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 14, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: dc-fade-in 200ms ease-out;
}

.dc-modal__panel {
    position: relative;
    z-index: 1;
    width: 95%;
    max-width: 480px;
    background: linear-gradient(180deg, #1a1a1f 0%, #14141a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 40px 32px 32px;
    color: #f6f6f7;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    animation: dc-pop-in 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.dc-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms, color 150ms;
}
.dc-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dc-modal__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.dc-modal__lead {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px;
}
.dc-modal__lead strong {
    color: #fff;
}

/* ---------- Form fields ---------- */
.dc-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dc-field__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dc-field__input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 150ms, background 150ms;
    box-sizing: border-box;
}
.dc-field__input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.dc-field__input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.07);
}
.dc-field__hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin: 6px 0 0;
    line-height: 1.4;
}

/* ---------- Honeypot (invisible) ---------- */
.dc-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ---------- Submit ---------- */
.dc-form__submit {
    background: #fff;
    color: #0a0a0e;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 100ms, background 150ms;
    margin-top: 8px;
}
.dc-form__submit:hover {
    background: #e8e8ea;
    transform: translateY(-1px);
}
.dc-form__submit:active {
    transform: translateY(0);
}
.dc-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.dc-form__error {
    background: rgba(214, 54, 56, 0.15);
    border: 1px solid rgba(214, 54, 56, 0.4);
    color: #ffc1c2;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.dc-form__footer-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin: 12px 0 0;
    line-height: 1.4;
}
.dc-form__footer-note a {
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Success state ---------- */
.dc-modal__body--success {
    text-align: center;
}
.dc-success__check {
    margin: 0 auto 16px;
    display: inline-block;
}
.dc-success__track-link {
    display: inline-block;
    margin-top: 24px;
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}
.dc-modal__close-btn {
    display: block;
    margin: 16px auto 0;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}
.dc-modal__close-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* ---------- Animations ---------- */
@keyframes dc-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes dc-pop-in {
    from { opacity: 0; transform: scale(0.94) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- Mobile ---------- */
@media (max-width: 540px) {
    .dc-modal__panel {
        max-width: 100%;
        margin: 0 12px;
        padding: 32px 20px 24px;
    }
    .dc-modal__title {
        font-size: 20px;
    }
}
