/* Contact Section Styles */
.contact-section {
    position: relative;
    padding: 100px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow: hidden;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.contact-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.3) 0%, rgba(195, 207, 226, 0.3) 100%);
    z-index: 1;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-heading {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.contact-heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #d2a557, #e8cc87);
    border-radius: 2px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.75);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 0;
}

.form-group:nth-child(3),
.form-group:nth-child(4) {
    grid-column: span 1;
}

/* Make message span full width on larger screens if needed, or keep it in grid */
.form-group:last-of-type {
    grid-column: span 2;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.required {
    color: #dc3545;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #d2a557;
    box-shadow: 0 0 0 3px rgba(210, 165, 87, 0.1);
}

.form-input.error,
.form-textarea.error {
    border-color: #dc3545;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 6px;
    min-height: 20px;
}

.error-message:empty {
    display: none;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #d2a557 0%, #e8cc87 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    position: relative;
    box-shadow: 0 4px 15px rgba(210, 165, 87, 0.3);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 165, 87, 0.4);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: none;
    align-items: center;
    justify-content: center;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: flex;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.success-message {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
    margin-top: 20px;
    font-weight: 500;
}

.success-message.show {
    display: flex;
}

.success-message svg {
    flex-shrink: 0;
    stroke: #155724;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-section {
        padding: 80px 20px;
    }

    .contact-heading {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .contact-form {
        padding: 40px;
    }

    .form-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 20px;
    }

    .contact-heading {
        font-size: 2rem;
        margin-bottom: 35px;
        letter-spacing: 2px;
    }

    .contact-form {
        padding: 30px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-group:last-of-type {
        grid-column: span 1;
    }

    .form-group {
        margin-bottom: 0;
    }

    .form-input,
    .form-textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 50px 15px;
    }

    .contact-heading {
        font-size: 1.8rem;
        margin-bottom: 30px;
        letter-spacing: 1px;
    }

    .contact-form {
        padding: 25px;
    }

    .form-label {
        font-size: 0.95rem;
    }

    .form-input,
    .form-textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 14px;
        font-size: 1rem;
    }
}

