/* Contact Page Specific Styles */

/* Hero Section Animations */
.contact-hero {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.contact-hero .bg-white\/5 {
    animation: float 6s ease-in-out infinite;
}

.contact-hero .bg-white\/5:nth-child(2) {
    animation-delay: -2s;
}

.contact-hero .bg-white\/5:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Contact Stats Animation */
.contact-stat {
    transition: transform 0.3s ease;
}

.contact-stat:hover {
    transform: translateY(-5px);
}

/* Contact Form Enhancements - Modern Design */
.contact-form-container {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
    padding: 2.5rem;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.contact-form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #009FE3, #0EA5E9, #3B82F6);
    z-index: 1;
}

/* Form Header with Gradient Styling */
.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #009FE3, #0EA5E9);
    border-radius: 3px;
}

.form-header h2 {
    background: linear-gradient(135deg, #009FE3, #0EA5E9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
}

/* Form Field Styling */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
    transition: all 0.2s ease;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
}

.form-input:focus {
    border-color: #009FE3;
    box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.form-input:hover {
    border-color: #6b7280;
}

/* Enhanced Select Dropdown */
select.form-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Textarea Styling */
textarea.form-input {
    resize: vertical;
    min-height: 8rem;
}

/* Input Icon Styling */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-input {
    padding-left: 3.25rem;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
}

.input-icon-wrapper .form-input:focus + .input-icon {
    color: #009FE3;
}

/* Form Button Styling */
.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #009FE3, #0EA5E9);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 1rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0EA5E9, #3B82F6);
    transition: all 0.4s ease;
    z-index: -1;
}

.submit-button:hover::before {
    left: 0;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 159, 227, 0.4);
}

/* Input Validation Styling */
.form-input.is-valid {
    border-color: #10b981;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.form-input.is-invalid {
    border-color: #ef4444;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3e%3cpath fill='none' stroke='%23ef4444' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 3l6 6m0-6L3 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Checkbox Custom Styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.checkbox-input {
    position: relative;
    height: 1.25rem;
    width: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    border-radius: 0.25rem;
    border: 2px solid #e5e7eb;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-input:checked {
    border-color: #009FE3;
    background-color: #009FE3;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 0.75rem;
}

.checkbox-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
    outline: none;
}

.checkbox-label {
    font-size: 0.875rem;
    color: #4b5563;
    cursor: pointer;
}

/* Success Message Animation */
.success-message {
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Form Grid Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .form-row-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .form-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    .contact-form-container {
        padding: 1.25rem;
    }
    
    .submit-button {
        padding: 0.875rem 1.5rem;
    }
}
