/* CDA Certificate Verifier - Frontend Styles v2.1.0 */

@keyframes cda-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Outer wrapper ── */
.cda-verify-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 16px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ── Card ── */
.cda-verify-card {
    background: #ffffff;
    border: 1.5px solid #e0e7f0;
    border-radius: 18px;
    box-shadow: 0 8px 48px rgba(10, 30, 80, 0.10);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    padding: 52px 48px 44px;
}

/* ── Header ── */
.cda-verify-header {
    text-align: center;
    margin-bottom: 36px;
}

.cda-verify-badge {
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    color: #7a90b0;
    text-transform: uppercase;
    font-weight: 600;
}

.cda-verify-divider {
    width: 32px;
    height: 3px;
    background: #1a3a6e;
    border-radius: 2px;
    margin: 14px auto;
}

.cda-verify-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f2650;
    line-height: 1.12;
    margin: 0 0 16px;
    letter-spacing: -1px;
}

.cda-verify-subtitle {
    font-size: 14px;
    color: #7a90b0;
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

/* ── Input Form ── */
.cda-verify-form-wrap {
    margin-bottom: 0;
}

.cda-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.cda-cert-input {
    flex: 1;
    border: 1.5px solid #d0daea;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 15px;
    color: #0f2650;
    outline: none;
    font-family: Arial, sans-serif;
    background: #f5f8fd;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cda-cert-input::placeholder { color: #a0b0c8; }

.cda-cert-input:focus {
    border-color: #1a3a6e;
    box-shadow: 0 0 0 3px rgba(26, 58, 110, 0.10);
    background: #ffffff;
}

.cda-verify-btn {
    background: #1a3a6e;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 14px 26px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    transition: background 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cda-verify-btn:hover    { background: #0f2650; }
.cda-verify-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.cda-secure-note {
    font-size: 12px;
    color: #a0b0c8;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* ── Results Area ── */
.cda-result-area {
    border-top: 1.5px solid #e8eef8;
    background: #f5f8fd;
    margin: 28px -48px -44px;
}

.cda-result {
    padding: 36px 48px;
    text-align: center;
}

/* ── Result Icons ── */
.cda-result-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.cda-icon-success { background: #d1fae5; color: #065f46; }
.cda-icon-error   { background: #fee2e2; color: #991b1b; }

/* ── Result Text ── */
.cda-result-heading {
    font-size: 22px;
    font-weight: 700;
    color: #0f2650;
    margin: 0 0 6px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.cda-result-error .cda-result-heading { color: #7f1d1d; }

.cda-result-note {
    font-size: 13.5px;
    color: #7a90b0;
    margin: 0 0 24px;
    font-family: Arial, sans-serif;
}

/* ── Detail Rows ── */
.cda-result-details {
    background: #ffffff;
    border: 1.5px solid #d0daea;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    text-align: left;
}

.cda-detail-row {
    display: flex;
    padding: 13px 20px;
    border-bottom: 1px solid #edf2f8;
    gap: 12px;
    align-items: center;
    font-family: Arial, sans-serif;
}

.cda-detail-row:last-child { border-bottom: none; }

.cda-detail-label {
    font-size: 11px;
    font-weight: 700;
    color: #a0b0c8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    min-width: 130px;
}

.cda-detail-value {
    font-size: 14px;
    color: #0f2650;
    font-weight: 600;
}

/* ── Try Again Button ── */
.cda-try-again {
    background: transparent;
    border: 2px solid #1a3a6e;
    color: #1a3a6e;
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: background 0.2s, color 0.2s;
}

.cda-try-again:hover {
    background: #1a3a6e;
    color: #ffffff;
}

/* ── Mobile ── */
@media (max-width: 500px) {
    .cda-verify-card   { padding: 36px 24px 32px; }
    .cda-verify-title  { font-size: 30px; }
    .cda-input-row     { flex-direction: column; }
    .cda-verify-btn    { width: 100%; justify-content: center; }
    .cda-result-area   { margin: 28px -24px -32px; }
    .cda-result        { padding: 28px 24px; }
}
