body {
    background-color: #121212;
    color: #e0e0e0;
}

.contact-hero {
    background: linear-gradient(135deg, rgba(29, 29, 27, 0.97) 0%, rgba(42, 42, 42, 0.95) 100%);
    color: white;
    padding: 3.5rem 0 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-info-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch; /* Ensures all cards have the same height */
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.contact-card.highlight {
    background-color: rgba(160, 32, 240, 0.2);
    border: 1px solid rgba(160, 32, 240, 0.3);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #a020f0;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-info-card {
    background-color: #222222;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    flex: 1; /* Makes all cards take equal space */
    display: flex;
    flex-direction: column; /* Ensures proper alignment of content */
    justify-content: flex-start; /* Aligns content to the top */
    height: 100%; /* Ensures all cards are the same height */
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.contact-info-card .icon-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background-color: #1d1d1b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(29, 29, 27, 0.4);
}

.contact-info-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-info-card p {
    font-size: 1rem;
    color: #bbbbbb;
    line-height: 1.6;
    margin-bottom: 0; /* Removes bottom margin to prevent spacing issues */
}

/* Simplified form container */
.form-container {
    background-color: #222222;
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: auto;
    position: relative;
}

/* Simplified form visibility */
.contact-form {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-form.active-form {
    display: block;
    opacity: 1;
}

.form-label {
    color: #ffffff;
}

.form-control {
    background-color: #2d2d2d;
    border-color: #3d3d3d;
    color: #ffffff;
}

/* Ensure text remains white when typing */
.form-control,
.form-control:focus,
.form-control:active {
    color: #ffffff !important;
}

.form-select {
    background-color: #2d2d2d;
    border-color: #3d3d3d;
    color: #ffffff !important;
}

.form-select:focus {
    background-color: #333;
    border-color: #4f4d4e;
    box-shadow: 0 0 0 0.25rem rgba(79, 77, 78, 0.25);
}

/* Style select dropdown options */
.form-select option {
    background-color: #2d2d2d;
    color: #ffffff;
}

.form-control:focus {
    background-color: #333;
    border-color: #4f4d4e;
    box-shadow: 0 0 0 0.25rem rgba(79, 77, 78, 0.25);
}

/* Style placeholder text for all browsers */
.form-control::placeholder,
.form-select::placeholder {
    color: #bbbbbb !important;
    opacity: 0.7;
}

/* Firefox */
.form-control::-moz-placeholder,
.form-select::-moz-placeholder {
    color: #bbbbbb !important;
    opacity: 0.7;
}

/* Internet Explorer 10-11 */
.form-control:-ms-input-placeholder,
.form-select:-ms-input-placeholder {
    color: #bbbbbb !important;
    opacity: 0.7;
}

/* Microsoft Edge */
.form-control::-ms-input-placeholder,
.form-select::-ms-input-placeholder {
    color: #bbbbbb !important;
    opacity: 0.7;
}

.btn-glow {
    background-color: #1d1d1b;
    border-color: #1d1d1b;
    transition: all 0.3s ease;
}

.btn-glow:hover {
    background-color: #4f4d4e;
    border-color: #4f4d4e;
    box-shadow: 0 10px 20px rgba(79, 77, 78, 0.4);
}

.form-switcher {
    margin-bottom: 2rem;
}

/* Toggle Switch Styling */
.toggle-switch-container {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.toggle-slider {
    background-color: #2d2d2d;
    border-radius: 50px;
    padding: 5px;
    display: inline-flex;
    position: relative;
    width: auto;
    min-width: 450px; /* Increased from 340px to accommodate longer text */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.slider-indicator {
    background-color: #4f4d4e;
    position: absolute;
    height: calc(100% - 10px);
    border-radius: 40px;
    left: 5px;
    top: 5px;
    width: calc(50% - 5px);
    z-index: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 2px 15px rgba(79, 77, 78, 0.4);
}

.toggle-option {
    border: none;
    background: transparent;
    color: white;
    padding: 12px 15px; /* Adjusted padding to fit text better */
    cursor: pointer;
    border-radius: 40px;
    position: relative;
    z-index: 1;
    width: 50%;
    transition: color 0.3s ease;
    font-weight: 600;
    white-space: nowrap; /* Prevent text from wrapping */
    font-size: 0.95rem; /* Slightly smaller font size if needed */
}

.toggle-option.active {
    color: white;
}

.toggle-option:not(.active) {
    color: #bbbbbb;
}

.toggle-option:focus {
    outline: none;
}

/* Remove old button styles that will conflict */
.form-switcher .btn-group {
    display: none;
}

/* Make section titles larger and more prominent */
.section-title {
    font-size: 2.5rem !important;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff !important;
    letter-spacing: 0.5px;
    text-transform: none !important;
}

/* Animated bar styling for section titles */
.animated-bar.center-bar {
    height: 3px;
    width: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(to right, #1d1d1b 0%, #4f4d4e 100%);
    position: relative;
}

/* Submit button styling to match the toggle */
.submit-btn {
    background-color: #2d2d2d;
    border-color: #3d3d3d;
    border-radius: 40px;
    padding: 12px 25px;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    min-width: 270px; /* Ensure enough width for the text */
}

.btn-text {
    white-space: nowrap;
    display: inline-block;
}

.submit-btn:hover, .submit-btn:focus {
    background-color: #4f4d4e;
    border-color: #4f4d4e;
    box-shadow: 0 5px 15px rgba(79, 77, 78, 0.4);
    transform: translateY(-2px);
}

.ok-badge {
    display: inline-block;
    background-color: #4f4d4e;
    color: white;
    border-radius: 20px;
    padding: 2px 10px;
    margin-left: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Selection color */
::selection {
    background-color: rgba(79, 77, 78, 0.7);
    color: white;
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
    /* Fix contact page heading */
    .contact-hero {
        padding: 2rem 0 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-hero .display-4 {
        font-size: 2.2rem; /* Reduce font size on mobile */
    }
    
    .contact-hero .lead {
        font-size: 1rem;
    }
    
    /* Fix form switcher buttons */
    .toggle-slider {
        min-width: 100%; /* Full width on mobile */
        max-width: 100%;
        padding: 3px;
    }
    
    .toggle-option {
        padding: 10px 12px; /* Smaller padding on mobile */
        font-size: 0.85rem; /* Smaller font size */
    }
    
    /* Fix mobile menu positioning - make sure it's centered properly */
    .mobile-menu-toggle {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9000; /* Ensure high z-index for menu button */
    }
}