:root {
    --cvp-primary: #4f46e5;
    --cvp-secondary: #0f172a;
}

.cvp-shell {
    padding: 40px 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    border-radius: 28px;
    color: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cvp-hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 868px) {
    .cvp-hero-card {
        grid-template-columns: 1fr;
    }
}

.cvp-hero-copy h2 {
    font-size: 2.2rem;
    margin: 0 0 14px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
}

.cvp-hero-copy p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.6;
}

.cvp-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #a5b4fc;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cvp-form-panel {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.cvp-field {
    margin-bottom: 18px;
}

.cvp-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.cvp-field input,
.cvp-field select {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.cvp-field input:focus,
.cvp-field select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
}

.cvp-submit-btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--cvp-primary), #6366f1);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}

.cvp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.45);
}

.cvp-loading {
    display: none;
}

.cvp-submit-btn.is-loading .cvp-btn-text {
    display: none;
}

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

.cvp-result-card {
    margin-top: 24px;
    display: none;
}

.cvp-honeypot {
    position: absolute;
    left: -9999px;
}

/* Glassmorphism Cards Styling */
.cvp-glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 28px;
    color: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cvp-success-card {
    border-left: 5px solid #22c55e;
}

.cvp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.cvp-verified-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 8px 14px;
    border-radius: 999px;
    color: #4ade80;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.cvp-checkmark-svg {
    width: 22px;
    height: 22px;
}

.cvp-company-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cvp-card-logo-img {
    max-height: 42px;
    border-radius: 6px;
    object-fit: contain;
}

.cvp-company-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.cvp-candidate-hero {
    margin-bottom: 24px;
}

.cvp-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.cvp-candidate-fullname {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 4px 0 10px;
    color: #ffffff;
}

.cvp-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
}

.cvp-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
}

.cvp-card-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 580px) {
    .cvp-card-details-grid {
        grid-template-columns: 1fr;
    }
}

.cvp-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cvp-detail-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.cvp-detail-val {
    font-size: 0.98rem;
    font-weight: 600;
    color: #ffffff;
    word-break: break-word;
}

.cvp-highlight {
    color: #a5b4fc;
    font-family: monospace;
    font-size: 1.05rem;
}

.cvp-type-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--cvp-primary), #6366f1);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Failed Verification Card */
.cvp-failed-card {
    border-left: 5px solid #ef4444;
    background: rgba(239, 68, 68, 0.08);
    text-align: center;
    padding: 36px 24px;
}

.cvp-failed-icon-wrap {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: rgba(239, 68, 68, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.cvp-cross-svg {
    width: 32px;
    height: 32px;
}

.cvp-failed-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fca5a5;
    margin: 0 0 8px;
}

.cvp-failed-desc {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px;
}

.cvp-failed-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.cvp-retry-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cvp-retry-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}
