* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*  FORM SECTION */

main {
    min-height: 100vh;
    background: #000;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 100px;
}

/* floating gradient orbs */

main::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 138, 0, 0.2) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: gradientFloat 15s infinite;
}

main::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(229, 46, 113, 0.15) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
    animation: gradientFloat 20s infinite reverse;
}

/* container */

main>div {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.98), rgba(35, 35, 35, 0.95));
    border-radius: 28px;
    padding: 50px;
    max-width: 1100px;
    width: 100%;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 138, 0, 0.25),
        inset 0 0 30px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    border-left: 5px solid #ff8a00;
    animation: sectionSlideUp .8s ease-out;
    backdrop-filter: blur(12px);
}

/* title */

h1 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #ff8a00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: .5px;
}

/* subtitle */

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 40px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 138, 0, .2);
    padding-bottom: 20px;
}

/* form grid */

form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* section */

.form-section {
    grid-column: span 2;
    margin-top: 10px;
}

.section-title {
    color: #ff8a00;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #ff8a00;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* inputs */

.input-group {
    position: relative;
}

.full-width {
    grid-column: span 2;
}

/* label */

.input-group label {
    display: block;
    font-size: .95rem;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 8px;
    font-weight: 500;
}

.required label::after {
    content: " *";
    color: #ff8a00;
}

/* text fields */

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 138, 0, .25);
    border-radius: 10px;
    font-size: .95rem;
    color: #fff;
    transition: .25s ease;
    backdrop-filter: blur(6px);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* hover */

input:hover,
textarea:hover
/* focus */

input:focus,
textarea:focus {
    outline: none;
    border-color: #ff8a00;
    background: rgba(255, 138, 0, .05);
    box-shadow: 0 0 0 3px rgba(255, 138, 0, .15);
}

/* dropdown */

.custom-dropdown {
    position: relative;
    width: 100%;
}

/* select */

.custom-dropdown select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 138, 0, .25);
    border-radius: 10px;
    font-size: .95rem;
    color: #fff;
    appearance: none;
    cursor: pointer;
    transition: .25s ease;
}

/* arrow */

.custom-dropdown::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #ff8a00;
    border-bottom: 2px solid #ff8a00;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

/* hover */

.custom-dropdown select:hover
/* focus */

.custom-dropdown select:focus {
    outline: none;
    border-color: #ff8a00;
    background: rgba(255, 138, 0, .05);
    box-shadow: 0 0 0 3px rgba(255, 138, 0, .15);
}

/* dropdown options */

.custom-dropdown select option {
    background: #1e1e1e;
    color: #fff;
    padding: 12px;
}


/* submit button */

button[type="submit"] {
    grid-column: span 2;
    padding: 18px 30px;
    background: linear-gradient(135deg, #ff8a00, #e52e71);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(255, 138, 0, .35);
}

button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 138, 0, .45);
    letter-spacing: 1.5px;
}

button[type="submit"]:active {
    transform: translateY(-1px);
}

/* animations */

@keyframes sectionSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 20px);
    }
}

/* responsive */

@media(max-width:992px) {

    main>div {
        padding: 40px 10px;
    }

    h1 {
        font-size: 2.4rem;
    }

}

@media(max-width:768px) {

    form {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .input-group,
    .full-width,
    .form-section {
        grid-column: span 1;
    }

    button[type="submit"] {
        grid-column: span 1;
    }

}

@media(max-width:576px) {

    main>div {
        padding: 30px 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: .95rem;
    }

    input,
    textarea,
    .custom-dropdown select {
        padding: 12px 15px;
    }

    .custom-dropdown::after {
        right: 15px;
    }

}


/* ========================
   LOADER BUTTON
======================== */
button.loading {
    opacity: 0.7;
    pointer-events: none;
}

button.loading span {
    display: none;
}

button.loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}




.top-popup {
    position: fixed;
    top: -120px; 
    left: 50%;
    transform: translateX(-50%);
    background: #0d1117;
    color: #fff;
    padding: 14px 25px;
    border-radius: 8px;
    border: 1px solid #30363d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-size: 14px;
    z-index: 9999;
    transition: top 0.4s ease;
    opacity: 0; 
    pointer-events: none; 
}

.top-popup.show {
    top: 20px;
    opacity: 1;
    pointer-events: auto;
}