/* =========================================================
   GLOBAL STYLES & VARIABLES
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --gold: #fbbc05;
    --orange: #e16435;
    --magenta: #a70d53;
    --white: #ffffff;
    --light: #f7f4f2;
    --dark-bg: #000000;
    --text-dark: #222;
    --text-gray: #555;
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
}

.logo span {
    color: var(--orange);
}

.nav-links a {
    margin: 0 1rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-actions .btn {
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    padding: 0.6rem 1.4rem;
    margin-left: 0.8rem;
    transition: 0.3s;
    border: 1px solid transparent;
}

.btn-login {
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-login:hover {
    background: var(--gold);
    color: #000;
}

.btn-primary {
    background: var(--magenta);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange);
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%;
    color: var(--white);
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 10s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
    text-align: left;
    animation: fadeInUp 2s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing effect */
.typing-text {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: left;
    min-height: 120px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.typing-text::after {
    content: "|";
    color: var(--gold);
    animation: blink 0.8s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    50.01%,
    100% {
        opacity: 0;
    }
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--light);
    opacity: 0;
    animation: fadeIn 2s ease forwards;
    animation-delay: 4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.cta-btn {
    display: inline-block;
    background: var(--gold);
    color: #000;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 6px 15px rgba(251, 188, 5, 0.4);
}

.cta-btn:hover {
    background: var(--orange);
    color: var(--white);
}

/* =========================================================
   SYSTEM PROCESS FLOW
========================================================= */
.process-section {
    background: #fff;
    color: var(--text-dark);
    padding: 6rem 8%;
    text-align: center;
}

.process-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--magenta);
    margin-bottom: 1rem;
}

.process-section p {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* 4 cards in one row */
.process-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.flow-card {
    background: #f9f9f9;
    padding: 1.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--magenta);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(167, 13, 83, 0.2);
}

.flow-card span {
    background: var(--gold);
    color: #000;
    font-weight: 700;
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    margin-bottom: 0.8rem;
}

.flow-card h3 {
    font-size: 1.2rem;
    color: var(--magenta);
    margin-bottom: 0.5rem;
}

.flow-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive grid */
@media (max-width: 992px) {
    .process-flow {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .process-flow {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   CUSTOMIZATION SECTION
========================================================= */
.customization-section {
    background: #522b39;
    color: #fff;
    padding: 6rem 10%;
    text-align: left;
}

.customization-section .content {
    max-width: 800px;
    margin: 0 auto;
}

.customization-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.customization-section p {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--light);
    margin-bottom: 2rem;
}

.customization-section ul {
    list-style: none;
    padding: 0;
}

.customization-section ul li {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
    background: #111;
    color: #eee;
    padding: 4rem 10%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo h3 {
    color: var(--gold);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-logo span {
    color: var(--orange);
}

.footer-logo p {
    color: #ccc;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.6rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: #ccc;
    line-height: 1.6;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
        background: rgba(0, 0, 0, 0.8);
    }

    .typing-text {
        font-size: 2.2rem;
        min-height: 100px;
    }

    .hero-content {
        max-width: 90%;
        padding-top: 90px;
    }

    .process-section,
    .customization-section,
    .footer {
        padding: 4rem 6%;
    }
}

/* =========================================================
   APPLICATION FORM PAGE
========================================================= */
.application-section {
    position: relative;
    height: 100vh;
    background: url('one.webp') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.application-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

/* ===== ENHANCED FORM CONTAINER (LARGER CARD) ===== */
.form-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    padding: 4rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
    transition: all 0.4s ease;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.form-container h2 {
    color: var(--magenta);
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-container p {
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.application-form-section {
    background: #f7f7f7;
    padding: 7rem 8%;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.application-form .form-group {
    text-align: left;
    margin-bottom: 1.2rem;
}

.application-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--gold);
    font-weight: 600;
}

.application-form input,
.application-form select,
.application-form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
}

.application-form input::placeholder,
.application-form textarea::placeholder {
    color: #ccc;
}

.application-form select option {
    color: #000;
}

.submit-btn-form {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn-form:hover {
    background: var(--orange);
    color: #fff;
}

/* =========================================================
   APPLICATION PAGE
========================================================= */
.application-header {
    position: relative;
    height: 60vh;
    background: url('one.webp') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.application-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.application-header .header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.application-header h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
}

.application-header p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light);
}

/* ===== FORM SECTION ===== */
.application-form-section {
    background: #f7f7f7;
    padding: 5rem 10%;
    color: var(--text-dark);
}

.form-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
}

.form-container h2 {
    color: var(--magenta);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-container p {
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

/* GRID FORM LAYOUT */
.grid-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1.2rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--magenta);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fafafa;
    color: var(--text-dark);
    font-size: 0.95rem;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.submit-btn-form {
    grid-column: span 3;
    padding: 1rem;
    background: var(--gold);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.submit-btn-form:hover {
    background: var(--orange);
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .grid-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-form {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MULTI-SELECT FIELD STYLING
========================================================= */
select[multiple] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 0.95rem;
    height: 120px;
    overflow-y: auto;
    transition: border-color 0.3s ease;
}

select[multiple]:focus {
    border-color: var(--magenta);
    outline: none;
    box-shadow: 0 0 0 3px rgba(167, 13, 83, 0.1);
}

select[multiple] option {
    padding: 6px 10px;
    border-radius: 5px;
    margin: 2px 0;
}

select[multiple] option:checked {
    background: var(--magenta);
    color: #fff;
}

/* =========================================================
   SUBMISSION SUCCESS POPUP
========================================================= */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s ease;
}

.success-popup.active {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.success-box {
    background: #fff;
    padding: 3rem 4rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: popIn 0.5s ease;
    max-width: 450px;
}

.success-box h3 {
    color: var(--magenta);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.success-box p {
    color: #444;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.success-box button {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.success-box button:hover {
    background: var(--orange);
    color: #fff;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
/* =========================================================
   CUSTOM MULTI-SELECT DROPDOWN
========================================================= */
.multi-select {
    position: relative;
    width: 100%;
}

.multi-select .dropdown {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
    padding: 0.8rem 1rem;
    transition: border-color 0.3s;
}

.multi-select .dropdown:hover {
    border-color: var(--magenta);
}

.multi-select .dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}

.multi-select.active .dropdown ul {
    display: block;
}

.multi-select .dropdown ul li {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.multi-select .dropdown ul li:hover {
    background: var(--light);
}

.multi-select .dropdown ul li.selected {
    background: var(--magenta);
    color: #fff;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.selected-tags .tag {
    background: var(--magenta);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: fadeIn 0.3s ease;
}

.selected-tags .tag span {
    cursor: pointer;
    background: #fff;
    color: var(--magenta);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}