/* Global Styles */
body {
    margin: 0;
    padding: 0;
    background-image: url('img9.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    font-family: 'Wix Madefor Display', sans-serif;
    font-size: 18px;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 600px;
    width: 90%;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.8s ease-in-out;
}

.arrow {
    position: absolute;
    top: 20px;
    left: 20px;
    text-decoration: none;
    font-size: 32px;
    color: #f6f6f6;
    background: rgba(0, 0, 0, 0);
    padding: 5px 15px;
    border-radius: 8px;
    transition: transform 0.2s, background 0.3s;
    transform: scale(1);
    z-index: 10;
}

.arrow:hover {
    transform: scale(1.3);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 1px;
}

.subtitle {
    opacity: 0.8;
    margin-top: 10px;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

label, .label-text {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
}

input, textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-family: 'Wix Madefor Display', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box; /* Ensures padding is included in width calculation */
}

input:focus, textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.contact-toggle {
    display: flex;
    gap: 15px;
}

.toggle-label {
    flex: 1;
    display: block;
    position: relative;
    padding: 15px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-label:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.toggle-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label input:checked + span {
    font-weight: 600;
    color: #ffffff;
}

.toggle-label input:checked + span:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
}

button {
    background-color: white;
    color: black;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    display: block;
    width: 80%; /* Reduced width for better aesthetic */
    max-width: 300px; /* Maximum width for consistency */
    margin: 20px auto 0; /* Center the button with auto margins */
    padding-bottom: 18px;
}

button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(1px);
}

/* Success Message Styles */
#successMessage {
    text-align: center;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

#successMessage h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        width: 85%;
        padding: 30px;
    }

    h1 {
        font-size: 2rem;
    }

    .arrow {
        top: 15px;
        left: 15px;
        font-size: 28px;
    }
}