﻿/* ==========================================================================
   TS FORENSIC LABORATORY - SEAMLESS FULL-SCREEN LOGIN
   ========================================================================== */

:root {
    --color-primary: #0F1D45;
    --color-primary-dark: #22687a;
    --color-accent: #22687a;
    --color-text-light: #22687a;
    --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;
    --color-success: #4caf50;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: var(--font-family-base);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   HEADER & NAVIGATION (For non-login pages)
   ========================================================================== */

.header-container {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: white;
    box-shadow: var(--shadow-strong);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.progress-bar-container {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.15);
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #64b5f6, var(--color-accent));
    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;
}

.logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px var(--color-logo-glow);
    transition: transform 0.4s ease;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px var(--color-logo-glow);
    }

    50% {
        box-shadow: 0 0 25px var(--color-logo-glow);
    }
}

.logo:hover {
    transform: scale(1.1);
}

.main-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, #ffffff, #E0E0E0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.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);
}

/* ==========================================================================
   MAIN WRAPPER - NO PADDING FOR LOGIN PAGE
   ========================================================================== */

.main-wrapper {
    flex-grow: 1;
    width: 100%;
    padding: 2rem 1rem;
    margin: 0;
}

    /* Override padding for login page */
    body:has(.login-page-wrapper) .main-wrapper,
    .main-wrapper:has(.login-page-wrapper) {
        padding: 0 !important;
        margin: 0 !important;
    }

/* Regular pages with content container */

/* ==========================================================================
   LOGIN PAGE FULL-SCREEN SEAMLESS DESIGN
   ========================================================================== */

.login-page-wrapper {
    width: 100vw;
    min-height: 100vh;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    /* DNA Forensic Background */
    background: linear-gradient(135deg, #62a4b5 0%, #62a4b5 100%);
}

    /* Alternative stunning backgrounds you can try:
background: 
    linear-gradient(135deg, rgba(15, 29, 69, 0.95) 0%, rgba(53, 46, 104, 0.92) 100%),
    url('https://images.unsplash.com/photo-1628595351029-c2bf17511435?w=1920&q=80') center/cover no-repeat fixed;

OR for more colorful DNA:
background: 
    linear-gradient(135deg, rgba(15, 29, 69, 0.93) 0%, rgba(53, 46, 104, 0.90) 100%),
    url('https://images.pexels.com/photos/3825517/pexels-photo-3825517.jpeg?w=1920') center/cover no-repeat fixed;
*/

    /* Animated Gradient Overlays */
    .login-page-wrapper::before {
        content: '';
        position: absolute;
        width: 800px;
        height: 800px;
        background: radial-gradient(circle, rgba(101, 224, 134, 0.18) 0%, transparent 70%);
        border-radius: 50%;
        top: -300px;
        right: -300px;
        animation: floatOrb 20s ease-in-out infinite;
    }

    .login-page-wrapper::after {
        content: '';
        position: absolute;
        width: 700px;
        height: 700px;
        background: radial-gradient(circle, rgba(100, 181, 246, 0.15) 0%, transparent 70%);
        border-radius: 50%;
        bottom: -250px;
        left: -250px;
        animation: floatOrb 25s ease-in-out infinite reverse;
    }

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(70px, -70px) rotate(120deg);
    }

    66% {
        transform: translate(-70px, 70px) rotate(240deg);
    }
}

/* Decorative DNA Strands */
.login-page-wrapper .dna-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    pointer-events: none;
    background-image: repeating-linear-gradient( 45deg, transparent, transparent 80px, rgba(101, 224, 134, 0.1) 80px, rgba(101, 224, 134, 0.1) 82px );
}

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 32px;
    padding: 3rem 2.8rem;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 0 120px rgba(101, 224, 134, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
    width: 100%;
    max-width: 520px;
    z-index: 10;
    animation: slideUpCard 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 2rem;
}

@keyframes slideUpCard {
    from {
        opacity: 0;
        transform: translateY(70px) scale(0.93);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Top Gradient Accent Line */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--color-accent) 20%, var(--color-logo-glow) 50%, var(--color-accent) 80%, transparent);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 0 35px rgba(101, 224, 134, 0.8);
    animation: accentPulse 3s ease-in-out infinite;
}

@keyframes accentPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 35px rgba(101, 224, 134, 0.8);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 50px rgba(101, 224, 134, 1);
    }
}

/* Security Badge */
.security-badge {
    position: absolute;
    top: -16px;
    right: 2.5rem;
    background: linear-gradient(135deg, var(--color-accent), #4caf50);
    color: var(--color-primary-dark);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 10px 25px rgba(101, 224, 134, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(101, 224, 134, 0.6);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 12px 35px rgba(101, 224, 134, 0.8);
    }
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 2.2rem;
}

/* Forensic Icon with 3D Effect */
.forensic-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.8rem;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    box-shadow: var(--shadow-strong), 0 0 0 10px rgba(101, 224, 134, 0.15), inset 0 -8px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: iconFloat 4s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
        box-shadow: var(--shadow-strong), 0 0 0 10px rgba(101, 224, 134, 0.15), 0 0 50px rgba(100, 181, 246, 0.35);
    }

    50% {
        transform: translateY(-10px) rotateY(10deg);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(101, 224, 134, 0.25), 0 0 80px rgba(100, 181, 246, 0.6);
    }
}

.forensic-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-logo-glow));
    opacity: 0.35;
    filter: blur(25px);
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.35;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.login-title {
    font-size: 2.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(15, 29, 69, 0.1);
}

.login-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.org-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(101, 224, 134, 0.15), rgba(100, 181, 246, 0.15));
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary);
    border: 1px solid rgba(101, 224, 134, 0.3);
}

    .org-tag i {
        margin-right: 0.3rem;
    }

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.7rem;
}

.form-group {
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 1.15rem 1.15rem 1.15rem 3.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-dark);
    background: var(--color-bg-content);
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

    .form-input::placeholder {
        color: transparent;
    }

    .form-input:hover {
        border-color: #cbd5e1;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    }

    .form-input:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 4px rgba(15, 29, 69, 0.1), 0 8px 24px rgba(15, 29, 69, 0.15);
        transform: translateY(-2px);
    }

    .form-input.valid {
        border-color: var(--color-accent);
        background: #f0fff8;
    }

    .form-input.error {
        border-color: var(--color-danger);
        background: #fff5f5;
        animation: inputShake 0.45s cubic-bezier(.36,.07,.19,.97);
    }

@keyframes inputShake {
    0%, 100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-12px);
    }

    40% {
        transform: translateX(12px);
    }

    60% {
        transform: translateX(-10px);
    }

    80% {
        transform: translateX(10px);
    }
}

/* Floating Label */
.floating-label {
    position: absolute;
    left: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted);
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    background: transparent;
    padding: 0 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus ~ .floating-label,
.form-input:not(:placeholder-shown) ~ .floating-label {
    top: -11px;
    left: 3rem;
    font-size: 0.75rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    background: linear-gradient(to bottom, transparent 40%, var(--color-bg-content) 40%);
}

/* Input Icon */
.input-icon {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--color-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.form-input:focus ~ .input-icon {
    color: var(--color-primary-dark);
    transform: translateY(-50%) scale(1.15);
}

/* Validation Icons */
.validation-icon {
    position: absolute;
    right: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.form-input.valid ~ .validation-icon.check-icon {
    opacity: 1;
    color: var(--color-accent);
    animation: checkBounce 0.5s ease;
}

.form-input.error ~ .validation-icon.error-icon {
    opacity: 1;
    color: var(--color-danger);
    animation: errorShake 0.4s ease;
}

@keyframes checkBounce {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.2);
    }
}

@keyframes errorShake {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg);
    }

    25% {
        transform: translateY(-50%) rotate(-10deg);
    }

    75% {
        transform: translateY(-50%) rotate(10deg);
    }
}

/* Captcha Container */
.captcha-container {
    background: linear-gradient(135deg, var(--color-radio-bg), var(--color-dropdown-bg));
    padding: 1.1rem;
    border-radius: 14px;
    border: 2px dashed #d1dce5;
    margin-top: 0.8rem;
}

.captcha-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-label);
    margin-bottom: 0.7rem;
}

    .captcha-label i {
        margin-right: 0.4rem;
        color: var(--color-accent);
    }

.req {
    color: var(--color-danger);
    margin-left: 0.2rem;
    font-size: 1rem;
}

/* Action Links */
.action-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    margin: 0.6rem 0;
}

.action-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--color-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

    .action-link::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--color-primary-dark), var(--color-accent));
        transition: width 0.3s ease;
    }

    .action-link:hover {
        color: var(--color-primary-dark);
        transform: translateX(3px);
    }

        .action-link:hover::after {
            width: 100%;
        }

/* Submit Button with Enhanced Effect */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 14px;
    font-size: 1.12rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(15, 29, 69, 0.3), inset 0 -3px 8px rgba(0, 0, 0, 0.15);
    margin-top: 0.6rem;
}

    /* Button Shine Effect */
    .submit-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
        transition: left 0.7s cubic-bezier(.7,0,.3,1);
    }

    .submit-btn:hover::before {
        left: 100%;
    }

    .submit-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 45px rgba(15, 29, 69, 0.4), 0 0 0 5px rgba(101, 224, 134, 0.25), inset 0 -3px 8px rgba(0, 0, 0, 0.15);
    }

    .submit-btn:active {
        transform: translateY(-2px);
    }

    .submit-btn:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none;
    }

.passubmit-btn {
    background: none;
    border: none;
    color: #0066cc;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    box-shadow: none;
    width: auto;
    transition: 0.3s ease;
    text-decoration: underline;
}

    .passubmit-btn:hover {
        color: #004b99;
        text-decoration-thickness: 2px;
    }

    .passubmit-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Loading Spinner */
.btn-spinner {
    display: inline-block;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
    margin-left: 0.6rem;
    vertical-align: middle;
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Security Notice */
.security-notice {
    margin-top: 2rem;
    padding: 1.1rem 1.2rem;
    background: linear-gradient(135deg, rgba(101, 224, 134, 0.1), rgba(100, 181, 246, 0.1));
    border-radius: 14px;
    border-left: 4px solid var(--color-accent);
    font-size: 0.85rem;
    color: var(--color-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    line-height: 1.6;
}

.notice-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 0.1rem;
}

/* ==========================================================================
   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;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.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: all 0.3s;
    padding: 0.5rem 0.7rem;
}

    .footer-link:hover {
        color: #fff;
        text-decoration: underline;
        transform: translateY(-2px);
    }

.footer-copyright {
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

/* ==========================================================================
   LOADING OVERLAY
   ========================================================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    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);
    }
}

/* ==========================================================================
   SWEET ALERT CUSTOM STYLES
   ========================================================================== */

.forensic-swal {
    border-radius: 26px !important;
    padding: 2.8rem !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3) !important;
}

.forensic-swal-title {
    font-weight: 800 !important;
    color: var(--color-primary) !important;
    font-size: 1.7rem !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 992px) {
    .content-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.7rem;
        padding: 0.7rem 0.5rem;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .main-title {
        font-size: 1.25rem;
    }

    .login-page-wrapper {
        padding: 1rem;
    }

    .login-card {
        padding: 2.5rem 2rem;
        border-radius: 28px;
        margin: 1rem;
    }

    .forensic-icon {
        width: 90px;
        height: 90px;
        font-size: 3rem;
    }

    .login-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
        margin: 0.5rem;
    }

    .forensic-icon {
        width: 80px;
        height: 80px;
        font-size: 2.6rem;
    }

    .login-title {
        font-size: 1.6rem;
    }

    .login-subtitle {
        font-size: 0.9rem;
    }

    .action-links {
        flex-direction: column;
        gap: 0.9rem;
        align-items: flex-start;
    }

    .security-badge {
        top: -14px;
        right: 1rem;
        font-size: 0.65rem;
        padding: 0.5rem 1rem;
    }
}

/* Fix for very small mobile devices */
@media (max-width: 360px) {
    .login-card {
        padding: 1.5rem 1rem;
    }
}
/* Additional Policy Page Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

    .policy-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .policy-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .policy-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .policy-item:nth-child(4) {
        animation-delay: 0.4s;
    }

/*-----------------------------------------------------
    REGISTRATION PAGE CSS STARTS HERE
    -------------------------------------------------------
*/
/* Card-like hero for registration */


:root {
    --color-primary: #22687a;
    --color-primary-light: #22687a;
    --color-accent: #22687a;
    --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;
}
