/* Certificate Verification Styles */

:root {
    --primary: #353366;
    --secondary: #8D8A8A;
    --success: #198754;
    --danger: #dc3545;
    --bg-light: #f8f9fa;
    --accent: #FF6F0F;
    --cic-indigo: #1a237e;
    --cic-amber: #fbc02d;
}

/* ---------- Main Wrapper ---------- */
.verify-main-wrap {
    max-width: 1180px;
    margin: 0 auto 3rem auto;
}

.verify-container {
    background: #fff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(26, 35, 126, 0.06);
    border: 1px solid #eef0f6;
}

/* ---------- Video Guide Card ---------- */
.video-guide-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(26, 35, 126, 0.06);
    border: 1px solid #eef0f6;
}

/* ---------- Video Wrapper ---------- */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.verify-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.video-overlay-play {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.55), rgba(251, 192, 45, 0.35));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 2;
}

.video-overlay-play.hide {
    opacity: 0;
    pointer-events: none;
}

.play-btn-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cic-indigo);
    font-size: 26px;
    padding-left: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.video-overlay-play:hover .play-btn-circle {
    transform: scale(1.1);
    background: var(--cic-amber);
    box-shadow: 0 12px 36px rgba(251, 192, 45, 0.45);
}

.overlay-text {
    color: #fff;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
    letter-spacing: 0.3px;
}

/* ---------- 3 Quick Steps ---------- */
.video-steps {
    background: linear-gradient(135deg, #f8f9ff 0%, #fffaf0 100%);
    border: 1px solid #eef0f6;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0.7rem 0;
}

.step-item + .step-item {
    border-top: 1px dashed rgba(26, 35, 126, 0.1);
}

.step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cic-indigo);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(26, 35, 126, 0.2);
}

.step-body strong {
    color: var(--cic-indigo);
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
}

/* ---------- Features / Trust Strip ---------- */
.verify-features-row {
    max-width: 1180px;
    margin: 0 auto;
}

.vfeat-card {
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.vfeat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(26, 35, 126, 0.08);
    border-color: var(--cic-amber);
}

.vfeat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem auto;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef0ff 0%, #fff4d6 100%);
    color: var(--cic-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.vfeat-card h6 {
    color: var(--cic-indigo);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.vfeat-card .small {
    color: #6b7280;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .verify-container,
    .video-guide-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .verify-container,
    .video-guide-card {
        padding: 1.5rem 1rem;
    }

    .play-btn-circle {
        width: 64px;
        height: 64px;
        font-size: 22px;
    }
}

.verify-input-group {
    position: relative;
    margin-bottom: 2rem;
}

.verify-input {
    width: 100%;
    padding: 15px 25px;
    padding-right: 60px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.verify-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(53, 51, 102, 0.1);
    outline: none;
}

.verify-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-btn:hover {
    background: #2a2852;
}

/* Results Styling */
.result-card {
    display: none;
    padding: 2.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    animation: fadeIn 0.4s ease-out;
    text-align: center;
}

.result-card.valid {
    display: block;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.result-card.invalid {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.valid .result-icon { color: var(--success); }
.invalid .result-icon { color: var(--danger); }

.result-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.valid .result-title { color: #166534; }
.invalid .result-title { color: #991b1b; }

.result-details {
    font-size: 16px;
    color: #444;
    margin-bottom: 1.5rem;
}

.expiry-box {
    background: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid #e0e0e0;
    font-weight: 700;
    color: var(--primary);
}

.contact-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.contact-box {
    text-align: center;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-box a.contact-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.contact-box p.contact-link {
    color: #6b7280;
    font-weight: 500;
}

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

.loading-spinner-verify {
    display: none;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
