/* ===========================
   Custom Font Declarations
   =========================== */
@font-face {
    font-family: 'Mehr Nastaliq';
    src: url('../fonts/Mehr_Nastaliq_Web.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Nastaliq Urdu';
    src: url('../fonts/NotoNastaliqUrdu-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: fallback;
}

/* ===========================
   CSS Variables & Design Tokens
   =========================== */
:root {
    /* Color Palette */
    --primary-red: #A83232;
    --primary-red-dark: #8B2828;
    --primary-red-darker: #6E2020;
    --accent-yellow: #fec70a;
    --accent-yellow-hover: #E5B520;

    /* Neutral Colors */
    --white: #FFFFFF;
    --cream: #FFF5E6;
    --light-cream: #FFF9F0;
    --text-dark: #2C2C2C;
    --text-light: #FFFFFF;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-input: 0 2px 6px rgba(0, 0, 0, 0.06);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-urdu: 'Mehr Nastaliq', 'Noto Nastaliq Urdu', serif;

    /* Spacing */
    --spacing-xs: 0.3rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===========================
   Global Styles & Reset
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: url('../images/Kashmir registration page.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    position: relative;
    overflow-x: hidden;
}

/* ===========================
   Form Container
   =========================== */
.form-container {
    width: 100%;
    max-width: 1000px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-wrapper {

    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);

    position: relative;
}

/* ===========================
   Header Section
   =========================== */
.header-section {
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* ===========================
   Form Content Wrapper
   =========================== */
.form-content-wrapper {
    position: relative;
    z-index: 1;
}

.form-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.logo-img {
    width: auto;
    height: 90px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto 0;
    line-height: 0;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-top: var(--spacing-md);
    letter-spacing: 2px;
    line-height: 1;
}


.subtitle-en {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
    margin-bottom: 6px;
}

.subtitle-ur {
    font-size: 1.15rem;
    color: var(--white);
    font-weight: 500;
    direction: rtl;
    font-family: var(--font-urdu);
}

/* ===========================
   Form Styles
   =========================== */
.registration-form {
    position: relative;
    z-index: 1;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    display: block;
}

.urdu-label {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 500;
    font-family: var(--font-urdu);
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.5rem;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: var(--radius-xs);
    background: var(--white);
    color: var(--text-dark);
    box-shadow: var(--shadow-input);
    font-family: var(--font-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(168, 50, 50, 0.1);
}

.form-input::placeholder {
    font-size: 0.9rem;
}


/* ===========================
   Submit Button
   =========================== */
.button-container {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-md);
}

.btn-submit {
    padding: 0.5rem 8rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-yellow-hover) 100%);
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    text-transform: capitalize;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(244, 196, 48, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .form-wrapper {
        padding: var(--spacing-lg);
    }

    .welcome-title {
        font-size: 2rem;
    }

    .subtitle-en,
    .subtitle-ur {
        font-size: 0.875rem;
    }

    .btn-submit {
        padding: 0.875rem 3rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    body {
        padding: var(--spacing-sm);
    }

    .form-wrapper {
        padding: var(--spacing-md);
    }

    .logo-img {
        height: 140px;
    }

    .welcome-title {
        font-size: 1.75rem;
    }

    .btn-submit {
        width: 100%;
        padding: 1rem;
    }
}

/* ===========================
   Accessibility
   =========================== */
.form-input:focus-visible,
.btn-submit:focus-visible {
    outline: 3px solid var(--primary-red);
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================
   Success Section Styles
   =========================== */
.success-section {
    margin-top: var(--spacing-xl);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Success Message Box */
.success-message-box {
    background: transparent;
    border: 2px solid var(--white);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-sm);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    box-shadow:
        inset 0 0 100px 20px rgba(88, 23, 23, 0.55),
        inset 0 0 80px 15px rgba(88, 23, 23, 0.45),
        inset 0 0 60px 10px rgba(88, 23, 23, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(88, 23, 23, 0.25);
}

.success-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    letter-spacing: 1px;
    line-height: 1.3;
}

.success-subtitle-ur {
    font-size: 2.4rem;
    color: var(--white);
    font-family: var(--font-urdu);
    direction: rtl;
    margin: 0;
    font-weight: 400;
}

/* Promo Carousel */
.promo-carousel {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: var(--spacing-lg);
    border-radius: 0;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
}

.carousel-image {
    width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
}

/* Override Bootstrap Carousel Indicators */
#promoCarousel .carousel-indicators {
    position: absolute !important;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2 !important;
}

#promoCarousel .carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    transition: all var(--transition-normal) !important;
    opacity: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    position: relative !important;
    text-indent: 0 !important;
    box-sizing: border-box !important;
}

#promoCarousel .carousel-indicators button:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.95) !important;
    transform: scale(1.15) !important;
    background-color: transparent !important;
}

#promoCarousel .carousel-indicators button.active {
    background-color: var(--white) !important;
    border-color: var(--white) !important;
    transform: scale(1.2) !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4) !important;
}

/* Hide Carousel Navigation Arrows */
#promoCarousel .carousel-control-prev,
#promoCarousel .carousel-control-next {
    display: none !important;
}


/* Stay Tuned Section */
.stay-tuned-section {
    text-align: center;
    margin-bottom: 0;
    padding: 0;
}

.promo-text {
    font-size: 3.0rem;
    font-weight: 400;
    color: var(--white);
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1;
}

.stay-tuned-title {
    font-size: 5.5rem;
    font-weight: 700;
    color: var(--white);
    margin: .6rem;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Coming Soon Cards */
.coming-soon-cards {
    /* margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%); */

    width: 100vw;
    max-width: 140vw;
    padding: 2rem 5rem;
    margin-left: calc(-50vw + 50%);


}

.promo-card {
    border: 2px solid var(--white);
    border-radius: var(--radius-xs);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.promo-card:hover {
    box-shadow: var(--shadow-lg);
}

.promo-card-img {
    width: 100%;
    height: auto;
    display: block;
}

.promo-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 35%;
}

.coming-soon-text {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Social Media Section */
.social-section {
    text-align: center;
    padding: var(--spacing-sm) 0;
}

.social-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--white);
    margin: 0;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    transition: all var(--transition-normal);
    text-decoration: none;
    padding: 8px;
}

.social-icon:hover {
    box-shadow: var(--shadow-md);
}

.social-icon svg {
    width: 28px;
    height: 28px;
}

/* Responsive Adjustments for Success Section */

/* Tablet Breakpoint */
@media (max-width: 1024px) and (min-width: 769px) {

    /* Critical: Allow overflow for full-width carousel while preventing scrollbars */
    html {
        overflow-x: clip !important;
    }

    body {
        overflow-x: clip !important;
    }

    /* Expand form container to full width */
    .form-container {
        max-width: 100% !important;
        width: 100% !important;
    }

    .coming-soon-cards {
        width: 108vw;
        max-width: 120vw;
        padding: 1rem 3rem;
        margin-left: calc(-50vw + 46%);
    }

    .coming-soon-text {
        font-size: 1.5rem;
    }

    .stay-tuned-title {
        font-size: 4rem;
    }

    .promo-text {
        font-size: 2.5rem;
    }

    /* Ensure carousel takes full width on tablet - Enhanced selectors */
    .promo-carousel,
    #promoCarousel {
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        width: 100vw !important;
        max-width: none !important;
        position: relative;
        left: 0;
        right: 0;
    }

    /* Target Bootstrap carousel inner container */
    .carousel-inner,
    #promoCarousel .carousel-inner {
        width: 100vw !important;
        max-width: none !important;
    }

    .carousel-image {
        width: 100% !important;
        max-width: 100vw !important;
        object-fit: cover;
        display: block;
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .success-title {
        font-size: 1.2rem;
    }

    .success-subtitle-ur {
        font-size: 0.95rem;
    }

    .stay-tuned-title {
        font-size: 2.5rem;
    }

    .promo-text {
        font-size: 0.9rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }

    .coming-soon-cards {
        width: 96vw;
        max-width: 140vw;
        padding: 0;
        margin-left: calc(-48vw + 50%);
    }

    /* Smaller carousel indicators on mobile */
    #promoCarousel .carousel-indicators button {
        width: 8px !important;
        height: 8px !important;
        border-width: 1.5px !important;
    }

    #promoCarousel .carousel-indicators button.active {
        transform: scale(1.1) !important;
    }

    #promoCarousel .carousel-indicators {
        gap: 8px !important;
        bottom: 10px !important;
    }
}

@media (max-width: 576px) {
    .success-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .stay-tuned-title {
        font-size: 2rem;
    }

    .social-icons {
        gap: var(--spacing-sm);
    }

    .coming-soon-text {
        font-size: .8rem;
    }

    .social-title {
        font-size: 1.2rem;
        font-weight: 400;
        color: var(--white);
        margin: 0;
        letter-spacing: 1px;
    }

    .coming-soon-cards {
        width: 95vw;
        max-width: 140vw;
        padding: 0;
        margin-left: calc(-48vw + 50%);
    }
}
