/* Contact Form Styles - Enhanced Version */
.contact-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.contact-form-wrapper h3 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(120deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form-wrapper p {
    color: #6c757d;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.full-width {
    grid-column: 1 / -1;
}

/* Enhanced Field Styling */
.field-wrapper {
    position: relative;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

/* Field States */
.contact-form input.field-success,
.contact-form select.field-success,
.contact-form textarea.field-success {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.contact-form input.field-error,
.contact-form select.field-error,
.contact-form textarea.field-error {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.field-focused {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Error Messages */
.field-error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    padding-left: 5px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Character Counter */
.character-counter {
    text-align: right;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.character-counter.warning {
    color: #ffc107;
    font-weight: 600;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.captcha-box:hover {
    background: #e9ecef;
}

.captcha-box input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #007bff;
}

.captcha-box label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    user-select: none;
}

/* Enhanced Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 18px 50px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn.loading {
    pointer-events: none;
}

/* Loading Spinner */
.spinner {
    animation: rotate 2s linear infinite;
}

.spinner .path {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

/* Headquarter Section */
.headquarter-section {
    background: white;
    padding: 60px 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.headquarter-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    align-items: center;
}

.headquarter-info h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 700;
}

.headquarter-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.headquarter-info li {
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.headquarter-info li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.headquarter-info li strong {
    display: block;
    color: #007bff;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.headquarter-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.headquarter-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.headquarter-image:hover img {
    transform: scale(1.05);
}

/* Form Messages */
.form-message {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: none;
    font-weight: 500;
    border-left: 4px solid;
}

.form-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left-color: #28a745;
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
}

.loading {
    display: none;
    text-align: center;
    padding: 30px;
    font-size: 1.1rem;
    color: #007bff;
    font-weight: 500;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-form-wrapper {
        padding: 40px 30px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .headquarter-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
        margin: 0 10px 30px;
    }

    .contact-form-wrapper h3 {
        font-size: 2.2rem;
    }

    .form-grid {
        gap: 20px;
    }

    .submit-btn {
        width: 100%;
        padding: 16px;
    }

    .headquarter-info h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper h3 {
        font-size: 1.8rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 15px;
        font-size: 15px;
    }
}