/* =========================
   CONTACT PAGE
========================= */
.container {
    width: 100%;
    max-width: 900px;
    margin: 130px auto 80px;
    padding: 50px;
    border-radius: 32px;

    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 25px 50px rgba(0,0,0,0.2);

    position: relative;
    overflow: hidden;
}

/* Glow Effect */
.container::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(139,92,246,0.12);
    filter: blur(120px);
    top: -120px;
    left: -100px;
    pointer-events: none;
}

.container::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(6,182,212,0.12);
    filter: blur(120px);
    bottom: -100px;
    right: -100px;
    pointer-events: none;
}

/* =========================
   TITLE
========================= */
.container h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 40px;
    color: white;
    font-weight: 800;
}

.container h2::after {
    content: "";
    width: 90px;
    height: 5px;
    display: block;
    margin: 14px auto 0;

    border-radius: 999px;

    background: linear-gradient(
        135deg,
        #8b5cf6,
        #06b6d4
    );
}

/* =========================
   FORM LAYOUT
========================= */
.row {
    display: flex;
    gap: 20px;
}

.row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
}

/* =========================
   LABELS
========================= */
.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 500;
}

/* =========================
   INPUTS
========================= */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;

    border-radius: 20px;
    border: 1px solid
        rgba(255,255,255,0.08);

    background:
        rgba(255,255,255,0.05);

    backdrop-filter: blur(20px);

    color: white;
    outline: none;

    font-size: 15px;
    transition: 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

/* Focus */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #06b6d4;

    box-shadow:
        0 0 0 4px
        rgba(6,182,212,0.12);
}

/* =========================
   SELECT CUSTOM
========================= */
.form-group select {
    appearance: none;
    cursor: pointer;

    background-image: url("data:image/svg+xml,%3Csvg fill='%2306b6d4' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px;
}

/* Dropdown options */
.form-group select option {
    background: #111827;
    color: white;
}

/* =========================
   TEXTAREA
========================= */
textarea {
    resize: none;
    min-height: 180px;
}

/* =========================
   FILE UPLOAD
========================= */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    display: none;
}

.file-label {
    padding: 45px 20px;
    border-radius: 24px;

    border: 2px dashed
        rgba(255,255,255,0.15);

    background:
        rgba(255,255,255,0.04);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: 0.3s ease;
    text-align: center;
}

.file-label:hover {
    border-color: #06b6d4;

    background:
        rgba(6,182,212,0.08);
}

.file-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #06b6d4;
}

.file-text {
    color: #94a3b8;
    font-size: 15px;
}

.file-name {
    display: block;
    margin-top: 12px;
    color: #06b6d4;
    font-size: 14px;
}

/* =========================
   BUTTON
========================= */
button {
    width: 100%;
    border: none;
    cursor: pointer;

    padding: 20px;
    border-radius: 20px;

    color: white;
    font-size: 1rem;
    font-weight: 700;

    transition: 0.35s ease;

    background: linear-gradient(
        135deg,
        #8b5cf6,
        #06b6d4
    );
}

button:hover {
    transform: translateY(-5px);

    box-shadow:
        0 25px 40px
        rgba(6,182,212,0.2);
}

/* =========================
   HIDDEN FIELD
========================= */
.hidden {
    display: none;
}

/* =========================
   LIGHT MODE
========================= */
body:not(.dark) .container {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.08);
}

body:not(.dark) .container h2 {
    color: #0f172a;
}

body:not(.dark) .form-group label {
    color: #334155;
}

body:not(.dark) .form-group input,
body:not(.dark) .form-group select,
body:not(.dark) .form-group textarea {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
    color: #111827;
}

body:not(.dark)
.form-group input::placeholder,
body:not(.dark)
.form-group textarea::placeholder {
    color: #64748b;
}

body:not(.dark) .file-label {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
}

body:not(.dark) .file-text {
    color: #475569;
}

body:not(.dark) select option {
    background: white;
    color: #111;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    .container {
        margin-top: 110px;
        padding: 30px 22px;
        border-radius: 28px;
    }

    .container h2 {
        font-size: 2.3rem;
    }

    .row {
        flex-direction: column;
        gap: 0;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 16px;
    }

    button {
        padding: 18px;
    }
}

@media (max-width: 480px) {

    .container {
        padding: 22px 16px;
        margin-top: 100px;
    }

    .container h2 {
        font-size: 2rem;
    }

    .file-label {
        padding: 35px 15px;
    }
}

@media (max-width: 350px) {

    .container h2 {
        font-size: 1.7rem;
    }
}