body {
    background-color: black;
    width: 100%;
    overflow-x: hidden;
    color: white;
}

.reachus {
    /* height: 85vh; */
    position: relative;
    z-index: 0;
}

@media(max-width: 1170px) {
    .reachus {
        height: 87vh;
    }
}

.reachus .container-fluid {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    padding: 0;
}

.reachus .container-fluid .col-lg-3 img {
    width: 200px;
}

.col-md-2 img {
    width: 100px;
}

.reachus .container-fluid .row {
    height: 100%;
}

#left {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

#right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

@media(min-width:1050px) {

    .left-middle,
    .left-bottom,
    .right-top,
    .right-middle,
    .right-bottom {
        -webkit-transform: scale(1.5);
        -ms-transform: scale(1.5);
        transform: scale(1.5);
    }
}

.reachus .container-fluid .row .col-lg-6 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

@media(max-width:1049px) {
    .left-top {
        -webkit-transform: scale(0.75);
        -ms-transform: scale(0.75);
        transform: scale(0.75);
        -webkit-transform-origin: left;
        -ms-transform-origin: left;
        transform-origin: left;
    }

    .left-middle,
    .right-middle {
        display: none;
    }
}

@media(max-width: 450px) {
    .left-bottom {
        -webkit-transform: scale(0.75);
        -ms-transform: scale(0.75);
        transform: scale(0.75);
        -webkit-transform-origin: left;
        -ms-transform-origin: left;
        transform-origin: left;
    }

    .right-top,
    .right-bottom {
        -webkit-transform: scale(0.75);
        -ms-transform: scale(0.75);
        transform: scale(0.75);
        -webkit-transform-origin: right;
        -ms-transform-origin: right;
        transform-origin: right;
    }

    .left-top {
        -webkit-transform: scale(0.5);
        -ms-transform: scale(0.5);
        transform: scale(0.5);
        -webkit-transform-origin: left;
        -ms-transform-origin: left;
        transform-origin: left;
    }
}

@media(max-width: 350px) {

    #left,
    #right {
        display: none;
    }

    .col-10 {
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
        max-width: 100%;
    }
}

form {
    color: white;
    margin-top: 50px;
    width: 100%;
}

.form-group {
    margin: 15px;
    margin-bottom: 24px;
}

/* Enhanced form labels */
.form-label {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #f5f7ff;
}

/* Required field indicator */
.required {
    color: #c10000;
    font-weight: bold;
    margin-left: 4px;
}

/* Optional field indicator */
.optional {
    color: rgba(231, 236, 255, 0.78);
    font-weight: normal;
    font-size: 0.9em;
    margin-left: 4px;
}

.form-control {
    background-color: rgba(47, 79, 79, 0.4);
    outline: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    background-color: rgba(47, 79, 79, 0.6);
    border: 2px solid #ae44ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(174, 68, 255, 0.2);
    color: white;
}

.form-control:invalid {
    border-color: #c10000;
}

.form-control:invalid:focus {
    border-color: #c10000;
    box-shadow: 0 0 0 3px rgba(193, 0, 0, 0.2);
}

/* Form help text */
.form-text {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    color: rgba(231, 236, 255, 0.78);
    line-height: 1.4;
}

/* Center help text that appears after buttons */
.btn + .form-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Form error messages */
.form-error {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    color: #ff6b6b;
    font-weight: 500;
    min-height: 1.2em;
}

/* Form feedback area */
.form-feedback {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
    border: 1px solid transparent;
}

.form-feedback.success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-feedback.error {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.form-feedback.info {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* Enhanced button styling */
.btn {
    background-color: black;
    border: 2px solid white;
    border-radius: 20px;
    color: white;
    padding: 12px 24px;
    margin: 15px auto;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 140px;
    display: block;
}

.btn:hover {
    background-color: #c10000;
    border-color: #c10000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(193, 0, 0, 0.3);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(193, 0, 0, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover {
    background-color: black;
    border-color: white;
    transform: none;
    box-shadow: none;
}

/* Button loading state */
.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-loading .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible for better keyboard navigation */
.form-control:focus-visible,
.btn:focus-visible {
    outline: 2px solid #ae44ff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-control {
        border-width: 3px;
    }
    
    .form-control:focus {
        border-width: 3px;
    }
    
    .btn {
        border-width: 3px;
    }
}

/* Invalid field styling */
.form-control.is-invalid {
    border-color: #c10000;
    background-color: rgba(193, 0, 0, 0.1);
}

.form-control.is-invalid:focus {
    border-color: #c10000;
    box-shadow: 0 0 0 3px rgba(193, 0, 0, 0.2);
}

/* Valid field styling */
.form-control:valid:not(:placeholder-shown) {
    border-color: rgba(34, 197, 94, 0.5);
}

.form-control:valid:not(:placeholder-shown):focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Improved focus management */
.form-control:focus + .form-text {
    color: #ae44ff;
}

/* Loading button animation */
.btn[aria-busy="true"] {
    pointer-events: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .form-control,
    .btn,
    .form-feedback {
        transition: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .fa-spinner {
        animation: none;
    }
    
    .feedback.scrollIntoView {
        scroll-behavior: auto;
    }
}