/* Form validation specific styles */
.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.125rem;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.is-invalid + .invalid-feedback {
    display: block;
}

.is-valid {
    border-color: #198754 !important;
}

/* Response message styles */
.response-message {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    width: 90%;  /* Changed from min-width/max-width to fixed width percentage */
    max-width: 600px;  /* Add max-width for larger screens */
    transition: top 0.5s ease;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.response-message.show {
    top: 20px;  /* Fixed position from top */
    position: fixed;
}

.response-content {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-radius: 8px;
    background: white;
}

.response-icon {
    margin-right: 12px;
    font-size: 20px;
    margin-top: 2px;
}

.response-text {
    white-space: pre-line;
    flex-grow: 1;
    font-size: 16px;
    line-height: 1.4;
}

.response-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 0 0 12px;
    color: #666;
}

.response-close:hover {
    color: #333;
}

/* Response states */
.response-message.success .response-content {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.response-message.success .response-icon::before {
    content: '✓';
    color: #28a745;
}

.response-message.error .response-content {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.response-message.error .response-icon::before {
    content: '!';
    color: #dc3545;
}

/* Floating label styles */
.form-floating {
    position: relative;
}

.form-floating > input,
.form-floating > textarea {
    padding: 1.625rem 1rem 0.625rem !important;
    height: auto;
    font-size: 16px;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 1rem;
    pointer-events: none;
    transform-origin: 0 0;
    transition: opacity .15s ease-in-out, transform .15s ease-in-out;
    opacity: 0.85;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: #333;
    font-size: 16px;
}

.form-floating > input:placeholder-shown ~ label,
.form-floating > textarea:placeholder-shown ~ label {
    opacity: 0.85;
    transform: scale(1) translateY(0);
}

.form-floating > input:focus ~ label,
.form-floating > textarea:focus ~ label,
.form-floating > input:not(:placeholder-shown) ~ label,
.form-floating > textarea:not(:placeholder-shown) ~ label {
    opacity: 0.85;
    transform: scale(0.85) translateY(-1rem);
}

.contact__form input:focus,
.contact__form textarea:focus {
    outline: none;
}

.contact__form .row.g-3 {
    margin-bottom: 15px;
}

.contact__form .row.g-3:last-of-type {
    margin-bottom: 5px;
}

.contact__form .btn_wrapper {
    padding-top: 5px;
}

/* Add these new styles */
.contact__form input,
.contact__form select,
.contact__form textarea {
    margin-bottom: 5px !important;  /* Override any existing margins */
}

/* Add focus styles */
.contact__form input:focus,
.contact__form textarea:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.4) !important;
}

/* Add spacing for mobile header */
@media (max-width: 991px) {
    .sec-title-wrapper {
        margin-top: 80px;  /* Add space between fixed header and title */
    }
}

/* Ensure title is visible on all devices */
.sec-title-2 {
    position: relative;
    z-index: 1;
}

/* reCAPTCHA styles */
.g-recaptcha {
    margin-bottom: 15px;
}

@media (max-width: 320px) {
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: 0 0;
    }
}

/* Add mobile-specific styles */
@media (max-width: 767px) {
    .response-message {
        width: 95%;  /* Wider on mobile */
    }
    
    .response-message.show {
        top: 70px;  /* More space from top on mobile to avoid header */
    }

    .response-content {
        padding: 12px 15px;  /* Slightly smaller padding on mobile */
    }

    .response-text {
        font-size: 14px;  /* Smaller font on mobile */
    }
} 