﻿/* ==========================================================================
   1. Design Tokens & Base Configuration
   ========================================================================== */
:root {
    --color-primary: #0d47a1; /* Deep, authoritative blue */
    --color-primary-dark: #1a237e;
    --color-accent: #1976d2;
    --color-text-light: #f5f7fa;
    --color-radio-bg: #f6fafd;
    --color-dropdown-bg: #f9fbfe;
    --color-dropdown-focus: #e3ecfa;
    --color-danger: #f44336;
    --color-muted: #54658f;
    --color-label: #20304d;
    --color-icon: #1976d2;
    --radius-main: 19px;    
    --color-text-dark: #212529;
    --color-bg-light: #f8f9fa;
    --color-bg-content: #ffffff;
    --font-family-base: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --border-radius: 12px;
    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.10);
    --color-logo-glow: #64b5f6;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: var(--font-family-base);
    line-height: 1.7;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom, 0); /* iOS notch safe area */
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */

.header-container {
    background: radial-gradient(circle at 50% 0%, rgba(25, 118, 210, 0.5) 0%, rgba(25, 118, 210, 0) 70%), linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-text-light);
    box-shadow: var(--shadow-strong);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    overflow: hidden;
}

.progress-bar-container {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.15);
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #64b5f6, #bbdefb);
    transition: width 0.1s linear;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    word-break: break-word;
}

.logo-container,
.header-text {
    flex-shrink: 0;
    flex-grow: 0;
}

.logo-container {
    margin-bottom: 0;
}

.logo {
    min-width: 48px;
    min-height: 48px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 15px -5px var(--color-logo-glow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: pulseGlow 4s ease-in-out infinite;
    margin: 0 0.5rem;
    padding: 4px;
    touch-action: manipulation;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 15px -5px var(--color-logo-glow);
    }

    50% {
        box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 25px 0px var(--color-logo-glow);
    }
}

.logo:hover {
    transform: scale(1.1);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2), 0 0 30px 5px var(--color-logo-glow);
    animation-play-state: paused;
}

.header-text {
    text-align: center;
}

.main-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, #ffffff, #cceaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3), 0px 4px 10px rgba(0, 0, 0, 0.2), 0px 0px 15px rgba(100, 181, 246, 0.3);
    word-break: break-word;
}

.sub-title {
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: block;
}

/* ==========================================================================
   3. Main Content Area
   ========================================================================== */

.main-wrapper {
    flex-grow: 1;
    width: 100%;
    padding: 2rem 1rem;
}

.content-container {
    max-width: 1320px;
    margin: 0 auto;
    background: var(--color-bg-content);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border-top: 5px solid var(--color-primary);
}

/* ==========================================================================
   4. Footer
   ========================================================================== */

.footer-container {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 1rem;
    margin-top: auto;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0));
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    padding: 0.5rem 0.7rem;
    min-width: 48px;
    display: inline-block;
    touch-action: manipulation;
}

    .footer-link:hover {
        color: #fff;
        text-decoration: underline;
    }

.footer-copyright {
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

/* ==========================================================================
   5. Utilities & Overlays
   ========================================================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0,0,0,0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   6. Responsive & Mobile Enhancements
   ========================================================================== */

/* Tablets */
@media (max-width: 992px) {
    .content-container {
        padding: 2rem;
    }
}

/* Mobile: 768px and below */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.7rem;
        padding: 0.7rem 0.5rem 0.5rem 0.5rem;
    }

    .logo {
        width: 60px;
        height: 60px;
        margin: 0 auto 0.35rem auto;
        padding: 6px;
    }

    .main-title {
        font-size: 1.25rem;
        word-break: break-word;
    }

    .sub-title {
        font-size: 1rem;
        padding: 0 2vw;
    }

    .main-wrapper {
        padding: 1rem 0.5rem;
    }

    .content-container {
        max-width: 100vw;
        border-radius: 8px;
        box-shadow: none;
        padding: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-link {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
}

/* For very small screens ~600px and below */
@media (max-width: 600px) {
    .header-content {
        padding: 0.5rem 0.25rem;
        gap: 0.5rem;
    }

    .footer-content {
        padding: 1rem 0.5rem;
    }

    .content-container {
        padding: 0.5rem;
    }
}

/* ==========================================================================
  MASTER PAGE DESIGNER ENDS HERE
   ========================================================================== */
/* ==========================================================================
  LOGIN PAGE DEISGNER STARTS
   ========================================================================== */
.login-container {
    width: 600px;
    margin: 0 auto; /* Center horizontally */
    min-height: 100vh;
    display: flex;
    justify-content: center; /* Center content inside */
    align-items: center; /* Center content inside */
    background: var(--color-bg-light);
    padding: 2rem;
}

@media (max-width: 1024px) {
    .login-container {
        gap: 1.5rem;
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
}
/* Login Form Section */
.login-section {
    background: var(--color-bg-content);
    border-radius: var(--border-radius);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-strong);
    border-left: 5px solid #1976d2;
    position: relative;
    overflow: visible;
    width: 650px;
}

    .login-section::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
        background: linear-gradient(180deg, #1a237e, #1976d2 80%);
        border-radius: 16px 0 0 16px;
        z-index: 1;
    }

@media (max-width: 768px) {
    .login-section {
        padding: 2rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 1.5rem 0.5rem;
    }
}

/* LOGIN HEADER */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #6c757d;
}

/* FORM STYLES */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-floating {
    position: relative;
}

    .form-floating input.form-control {
        width: 100%;
        padding: 1rem 1rem 1rem 3rem;
        border: 2px solid #e1e5e9;
        border-radius: 12px;
        font-size: 1rem;
        background: var(--color-bg-content);
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    }

        .form-floating input.form-control:focus {
            border-color: var(--color-primary);
            box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.18);
            outline: none;
            transform: scale(1.02);
        }

    .form-floating label {
        position: absolute;
        top: 50%;
        left: 3rem;
        transform: translateY(-50%);
        color: #6c757d;
        font-size: 1rem;
        pointer-events: none;
        background: var(--color-bg-content);
        padding: 0 0.4rem;
        transition: all 0.3s;
    }

    .form-floating input.form-control:focus + label,
    .form-floating input.form-control:not(:placeholder-shown) + label {
        top: 0;
        left: 2.5rem;
        font-size: 0.85rem;
        color: var(--color-primary-dark);
        font-weight: 600;
    }

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    color: #6c757d;
    pointer-events: none;
    user-select: none;
    transition: color 0.2s;
}

.form-floating input.form-control:focus ~ .input-icon {
    color: var(--color-primary-dark);
}

/* LOGIN OPTIONS & BUTTON */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    margin: 1rem 0 0.4rem 0;
}

    .login-options a.forgot-password {
        text-decoration: none;
        font-weight: 600;
        color: var(--color-primary-dark);
        transition: color 0.3s;
    }

        .login-options a.forgot-password:hover {
            color: var(--color-primary);
            text-decoration: underline;
        }

.login-btn {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 13px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    user-select: none;

}

    .login-btn:hover,
    .login-btn:focus {
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 12px 30px rgba(13,71,161,0.19);
        outline: none;
    }

    .login-btn::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(120deg, rgba(255,255,255,0) 70%,rgba(255,255,255,0.17) 100%);
        transition: left 0.6s cubic-bezier(.7,0,.3,1);
        z-index: 1;
    }

    .login-btn:hover::after {
        left: 0;
    }

/* SIDEBAR & CARDS */
/*.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .sidebar {
        margin-top: 2rem;
    }
}

.sidebar-card {
    background: var(--color-bg-content);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .sidebar-card:hover, .sidebar-card:focus-within {
        transform: translateY(-3px) scale(1.015);
        box-shadow: 0 16px 44px rgba(25,118,210,0.11);
    }*/
/* Enhanced News Card */
/*.news-card {
    background: linear-gradient(135deg, #f5f8fd 60%, var(--color-news-accent) 100%);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    position: relative;
    padding-top: 2rem;
}

    .news-card .card-header {
        margin-top: -2.2rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1.1rem;
    }

.news-icon {
    background: linear-gradient(135deg, #1a237e 60%, #1976d2 100%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 2px 8px rgba(13,71,161,0.10);
}
.news-item {
    margin-bottom: 1.1rem;
    padding: 1rem 0.7rem;
    border-radius: 10px;
    background: transparent;
    transition: background 0.22s, box-shadow 0.19s, transform 0.19s;
    position: relative;
    cursor: pointer;
}

    .news-item:hover {
        background: #e3f2fd;
        box-shadow: 0 4px 14px rgba(25,118,210,0.09);
        transform: translateY(-2px) scale(1.025);
    }

.news-date-badge {
    display: inline-block;
    padding: 0.21em 0.85em;
    background: linear-gradient(90deg, #64b5f6, #1976d2);
    color: #fff;
    font-size: 0.79rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 0.22rem;
    margin-right: 0.6em;
    box-shadow: 0 1px 6px rgba(25,118,210,0.08);
}

.news-title {
    font-weight: 600;
    color: #11254e;
    font-size: 1.06rem;
    margin-bottom: 0.17rem;
}

.news-excerpt {
    color: #344767;
    font-size: 0.9rem;
    line-height: 1.45;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0;
}

.card-content {
    color: #3e5167;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.98rem;
    transition: background 0.2s;
}

    .contact-item:last-child {
        border-bottom: none;
    }

    .contact-item:hover {
        background: #e3f2fd;
        border-radius: 8px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

.contact-icon {
    font-size: 1.1rem;
    color: #1976d2;
    width: 20px;
    text-align: center;
}

.contact-text {
    font-size: 0.97rem;
    color: #234;
}*/

/* Responsive Tuning for Sidebar */
/*@media (max-width: 768px) {
    .sidebar-card, .news-card {
        padding: 1.1rem;
    }
}*/

/* GLOBAL */
/** {
    box-sizing: border-box;
}*/


/*-----------------------------------------------------
    REGISTRATION PAGE CSS STARTS HERE
    -------------------------------------------------------
*/
/* Card-like hero for registration */


:root {
    --color-primary: #2563eb;
    --color-primary-light: #3b82f6;
    --color-accent: #8b5cf6;
    --color-danger: #ef4444;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-border: #d1d5db;
    --color-bg: #f9fafb;
    --color-bg-section: #ffffff;
    --color-label: #374151;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-icon: #4b5563;
    --color-radio-bg: #f3f4f6;
    --color-dropdown-bg: #f9fafb;
    --color-dropdown-focus: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}



.registration-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
  
}

.card {
    background: var(--color-bg-section);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
   
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    }

.card-header-enhanced {
    padding: 2.5rem 2rem;
    background: linear-gradient(105deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
   
}

    .card-header-enhanced::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 100%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
        transform: rotate(30deg);
    }

.reg-title {
    font-size:2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.reg-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.req {
    color: #ff0000;
    font-weight: 700;
}

.card-body {
    padding: 3rem;
}

.reg-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

.form-col {
    display: flex;
    flex-direction: column;
}

.form-col-full {
    grid-column: 1 / span 2;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-label);
    font-size: 1.05rem;
}

    .form-label .req {
        color: var(--color-danger);
        margin-left: 2px;
    }

.input-with-icon {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: var(--color-bg-section);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

    .form-control:focus {
        outline: none;
        border-color: var(--color-primary-light);
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    }

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-icon);
    font-size: 1.2rem;
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .radio-option input[type="radio"] {
        width: 1.2rem;
        height: 1.2rem;
        accent-color: var(--color-primary);
    }

    .radio-option label {
        font-weight: 500;
        cursor: pointer;
    }

.select-wrapper {
    position: relative;
}

    .select-wrapper::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 1.2rem;
        transform: translateY(-50%);
        pointer-events: none;
        font-size: 1.2rem;
        color: var(--color-icon);
    }

.reg-dropdown {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: var(--color-bg-section);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

    .reg-dropdown:focus {
        outline: none;
        border-color: var(--color-primary-light);
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    }

.center-btn {
    text-align: center;
    margin-top: 2rem;
}

.reg-submit {
    background: linear-gradient(105deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    padding: 1.1rem 3rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

    .reg-submit::after {
        content: "";
        position: absolute;
        top: -50%;
        left: -60%;
        width: 20px;
        height: 200%;
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(25deg);
        transition: all 0.6s;
    }

    .reg-submit:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    }

        .reg-submit:hover::after {
            left: 120%;
        }

.form-helper {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.info-badge {
    color: var(--color-primary);
    font-weight: 700;
    margin-left: 3px;
}

.instruction-note {
    font-size: 0.9rem;
    color: red;
    margin-top: 0.3rem;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reg-form-grid {
        grid-template-columns: 1fr;
    }

    .form-col-full {
        grid-column: 1;
    }

    .card-body {
        padding: 2rem 1.5rem;
    }

    .card-header-enhanced {
        padding: 1.8rem 1.5rem;
    }

    .reg-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .reg-title {
        font-size: 1.7rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.8rem;
    }

    .reg-submit {
        width: 100%;
        padding: 1rem;
    }
}

/* Animation for form elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    animation: fadeIn 0.4s ease-out forwards;
}

    .form-group:nth-child(1) {
        animation-delay: 0.1s;
    }

    .form-group:nth-child(2) {
        animation-delay: 0.2s;
    }

    .form-group:nth-child(3) {
        animation-delay: 0.3s;
    }

    .form-group:nth-child(4) {
        animation-delay: 0.4s;
    }

    .form-group:nth-child(5) {
        animation-delay: 0.5s;
    }

    .form-group:nth-child(6) {
        animation-delay: 0.6s;
    }

    .form-group:nth-child(7) {
        animation-delay: 0.7s;
    }

.btn-container {
    width: auto; /* adapt container width */
    display: inline-block; /* as per layout */
    padding: 0;
    text-align: center;
}

/* --- Main Payment Card --- */
/* Premium Payment Container */
/* Enhanced Container */
/* Focused Container */
/* Compact Container */
.compact-premium-container {
    min-height: 100vh;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Main Card */
.compact-premium-card {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.9);
    animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Compact Header */
.compact-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 20px 40px 16px;
    text-align: center;
    position: relative;
}

.compact-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
}

.compact-title {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.3px;
}

/* Main Content */
.compact-main-content {
    padding: 36px;
}

/* Unified Card */
.compact-unified-card {
    background: rgba(248, 250, 252, 0.9);
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .compact-unified-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #6366f1, #8b5cf6, #10b981, #f59e0b);
        border-radius: 24px 24px 0 0;
    }

    .compact-unified-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.1);
        border-color: rgba(99, 102, 241, 0.3);
    }

/* Compact Sections */
.compact-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

    .compact-section:last-of-type {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

/* Section Headers */
.compact-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.compact-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    margin-right: 12px;
}

.personal-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.local-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.fee-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.compact-section-title {
    flex: 1;
}

    .compact-section-title h3 {
        color: #1e293b;
        font-size: 1.1rem;
        font-weight: 700;
        margin: 0;
        letter-spacing: -0.2px;
    }

/* Verification Badges */
.compact-verification-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.verified {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.eligible {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.compact-payment-status {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.compact-status-dot {
    width: 6px;
    height: 6px;
    background: #f59e0b;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Info Grids */
.compact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.compact-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 14px;
    transition: all 0.3s ease;
}

    .compact-info-row:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.08);
        border-color: rgba(99, 102, 241, 0.3);
    }

.compact-info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.compact-label-icon {
    font-size: 1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.compact-info-label strong {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.1px;
}

.compact-info-value {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: right;
}

/* Compact Value Displays */
.compact-name-value {
    color: #6366f1 !important;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.compact-mobile-value {
    color: #1e293b !important;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    background: rgba(99, 102, 241, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
}

.compact-residency-value,
.compact-category-value {
    color: #1e293b !important;
    font-size: 0.9rem;
    font-weight: 600;
}

.compact-value-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.official {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.local {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.compact-status-indicator {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

/* Fee Content */
.compact-fee-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.compact-fee-breakdown {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    padding: 20px;
}

.compact-fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.compact-fee-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

    .compact-fee-label strong {
        color: #1e293b;
        font-size: 0.95rem;
        font-weight: 600;
    }

.compact-amount-value {
    color: #d97706 !important;
    font-size: 1.3rem;
    font-weight: 800;
}

.compact-fee-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.compact-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 8px;
    font-size: 0.8rem;
}

    .compact-detail-item span:first-child {
        color: #374151;
        font-weight: 500;
    }

.included {
    color: #16a34a;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Total Section */
.compact-total-section {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 20px;
}

.compact-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.compact-total-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .compact-total-label strong {
        color: #1e293b;
        font-size: 1rem;
        font-weight: 700;
    }

.compact-total-value {
    color: #059669 !important;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.compact-security-info {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.compact-security-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.08);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Action Section */
.compact-action-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    text-align: center;
}

.compact-pay-button {
    width: 100%;
    padding: 16px 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.25);
    margin-bottom: 16px;
}

    .compact-pay-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.6s;
    }

    .compact-pay-button:hover {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 16px 32px rgba(99, 102, 241, 0.35);
    }

        .compact-pay-button:hover::before {
            left: 100%;
        }

    .compact-pay-button:active {
        transform: translateY(-1px) scale(1);
    }

.compact-payment-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(248, 250, 252, 0.8);
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .compact-premium-container {
        padding: 20px 16px;
    }

    .compact-main-content {
        padding: 28px 20px;
    }

    .compact-header {
        padding: 16px 20px 12px;
    }

    .compact-title {
        font-size: 1.4rem;
    }

    .compact-unified-card {
        padding: 24px 20px;
    }

    .compact-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }

    .compact-info-value {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }

    .compact-fee-details {
        grid-template-columns: 1fr;
    }

    .compact-security-info {
        flex-direction: column;
        gap: 8px;
    }

    .compact-section-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .compact-fee-row,
    .compact-total-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Loading States */
.compact-name-value:empty::after,
.compact-mobile-value:empty::after,
.compact-residency-value:empty::after,
.compact-category-value:empty::after,
.compact-amount-value:empty::after,
.compact-total-value:empty::after {
    content: '';
    display: inline-block;
    width: 100px;
    height: 16px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.2) 25%, rgba(148, 163, 184, 0.4) 50%, rgba(148, 163, 184, 0.2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Focus States */
.compact-pay-button:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
}


/* Success Page Styles */
.success-premium-container {
    min-height: 100vh;
    padding: 30px 20px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #f7fee7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.success-premium-card {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.9);
    animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 40px 40px 32px;
    text-align: center;
    position: relative;
}

.success-icon-container {
    margin-bottom: 16px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    animation: successPulse 1.5s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
}

.success-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.success-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

/* Success Content */
.success-main-content {
    padding: 36px;
}

.success-unified-card {
    background: rgba(248, 250, 252, 0.9);
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

    .success-unified-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #10b981, #059669);
        border-radius: 24px 24px 0 0;
    }

.success-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

    .success-section:last-of-type {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.success-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.success-section-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    margin-right: 12px;
}

.next-steps-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.success-section-title {
    flex: 1;
}

    .success-section-title h3 {
        color: #1e293b;
        font-size: 1.1rem;
        font-weight: 700;
        margin: 0;
        letter-spacing: -0.2px;
    }

    .success-section-title p {
        color: #64748b;
        font-size: 0.85rem;
        margin: 2px 0 0 0;
        font-weight: 500;
    }

.success-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Success Info Grid */
.success-info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.success-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.featured-row {
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.success-info-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.08);
}

.success-info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.success-label-icon {
    font-size: 1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.success-info-label strong {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 600;
}

.success-info-value {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: right;
}

/* Success Value Styles */
.success-reference-value,
.success-transaction-value {
    color: #059669 !important;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    background: rgba(16, 185, 129, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
}

.success-mobile-value {
    color: #1e293b !important;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.success-payment-status {
    color: #059669;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-copy-btn {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #059669;
}

    .success-copy-btn:hover {
        background: rgba(16, 185, 129, 0.2);
        transform: scale(1.1);
    }

.success-status-indicator {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.success-timestamp {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Next Steps */
.success-next-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.success-step-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 14px;
    transition: all 0.3s ease;
}

    .success-step-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.08);
        border-color: rgba(59, 130, 246, 0.3);
    }

.success-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.success-step-content h4 {
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.success-step-content p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Action Buttons */
.success-action-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    text-align: center;
}

.success-button-group {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.success-primary-button {
    flex: 1;
    padding: 16px 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-secondary-button {
    flex: 1;
    padding: 16px 0;
    background: rgba(248, 250, 252, 0.9);
    color: #374151 !important;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.success-secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.success-support-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(248, 250, 252, 0.8);
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

/* ==================== CANCEL PAGE STYLES ==================== */

.cancel-premium-container {
    min-height: 100vh;
    padding: 30px 20px;
    background: linear-gradient(135deg, #fef2f2 0%, #fef7f7 50%, #fffbeb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cancel-premium-card {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.9);
    animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cancel-header {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    padding: 40px 40px 32px;
    text-align: center;
    position: relative;
}

.cancel-icon-container {
    margin-bottom: 16px;
}

.cancel-x-mark {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    animation: cancelShake 1.5s ease-in-out infinite;
}

@keyframes cancelShake {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-5deg) scale(1.02);
    }

    75% {
        transform: rotate(5deg) scale(1.02);
    }
}

.cancel-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.cancel-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

/* Cancel Content */
.cancel-main-content {
    padding: 36px;
}

.cancel-unified-card {
    background: rgba(248, 250, 252, 0.9);
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

    .cancel-unified-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #ef4444, #dc2626);
        border-radius: 24px 24px 0 0;
    }

.cancel-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

    .cancel-section:last-of-type {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.cancel-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.cancel-section-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    margin-right: 12px;
}

.reasons-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.cancel-section-title {
    flex: 1;
}

    .cancel-section-title h3 {
        color: #1e293b;
        font-size: 1.1rem;
        font-weight: 700;
        margin: 0;
        letter-spacing: -0.2px;
    }

    .cancel-section-title p {
        color: #64748b;
        font-size: 0.85rem;
        margin: 2px 0 0 0;
        font-weight: 500;
    }

.cancel-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Cancel Info Grid */
.cancel-info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cancel-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 14px;
    transition: all 0.3s ease;
}

    .cancel-info-row:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.08);
    }

.cancel-info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.cancel-label-icon {
    font-size: 1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.cancel-info-label strong {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 600;
}

.cancel-info-value {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: right;
}

.cancel-payment-status {
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cancel-amount-status,
.cancel-app-status {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 600;
}

.cancel-status-indicator {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    border: 1px solid;
}

.safe {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.25);
}

.pending {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.25);
}

.cancel-timestamp {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Reasons List */
.cancel-reasons-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cancel-reason-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 14px;
    transition: all 0.3s ease;
}

    .cancel-reason-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.08);
        border-color: rgba(245, 158, 11, 0.3);
    }

.cancel-reason-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cancel-reason-content h4 {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.cancel-reason-content p {
    color: #64748b;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.3;
}

/* Cancel Action Buttons */
.cancel-action-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    text-align: center;
}

.cancel-button-group {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.cancel-primary-button {
    flex: 1;
    padding: 16px 0;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cancel-secondary-button {
    flex: 1;
    padding: 16px 0;
    background: rgba(248, 250, 252, 0.9);
    color: #374151 !important;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cancel-primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

.cancel-secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.cancel-support-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(248, 250, 252, 0.8);
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .success-premium-container,
    .cancel-premium-container {
        padding: 20px 16px;
    }

    .success-main-content,
    .cancel-main-content {
        padding: 28px 20px;
    }

    .success-header,
    .cancel-header {
        padding: 32px 20px 24px;
    }

    .success-title,
    .cancel-title {
        font-size: 1.6rem;
    }

    .success-unified-card,
    .cancel-unified-card {
        padding: 24px 20px;
    }

    .success-info-row,
    .cancel-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }

    .success-info-value,
    .cancel-info-value {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }

    .success-button-group,
    .cancel-button-group {
        flex-direction: column;
        gap: 12px;
    }

    .cancel-reasons-list {
        grid-template-columns: 1fr;
    }

    .success-next-steps {
        gap: 12px;
    }

    .success-step-item,
    .cancel-reason-item {
        padding: 12px;
    }
}

/* Loading States */
.success-reference-value:empty::after,
.success-transaction-value:empty::after,
.success-mobile-value:empty::after {
    content: '';
    display: inline-block;
    width: 120px;
    height: 16px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.2) 25%, rgba(148, 163, 184, 0.4) 50%, rgba(148, 163, 184, 0.2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Focus States */
.success-primary-button:focus-visible,
.success-secondary-button:focus-visible,
.cancel-primary-button:focus-visible,
.cancel-secondary-button:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
}
