/* ==========================================================================
   Contact Form Styles - Netlify Forms
   ========================================================================== */

/* Page Layout */
.contact-page {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    min-height: calc(100vh - 200px);
}

.contact-page .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.contact-page .page-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 15px;
}

.contact-page .page-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 50px;
}

/* Form Container */
.form-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 50px;
    margin-bottom: 50px;
}

/* Form Layout */
.contact-form {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group.half {
    flex: 1;
}

/* Form Labels */
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.required {
    color: #e74c3c;
    font-weight: 700;
    margin-left: 2px;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    background-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

.form-control::placeholder {
    color: #adb5bd;
    font-size: 14px;
}

/* Select */
select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px 12px;
    padding-right: 45px;
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Character Count */
.char-count {
    text-align: right;
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-text {
    font-size: 14px;
    color: #495057;
}

.checkbox-text a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Error Styles */
.form-control.error {
    border-color: #e74c3c;
    background-color: #fff5f5;
}

.error-message {
    display: none;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    position: absolute;
    bottom: -20px;
    left: 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #4A5568;
    color: #fff;
    border-radius: 50px;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: none;
}

.btn-primary:hover {
    background: #2D3748;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(74, 85, 104, 0.3);
}

.btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #fff;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #6c757d;
    color: #495057;
}

/* Contact Info Section */
.contact-info {
    margin: 60px 0;
}

.contact-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.info-card i {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.info-card p {
    font-size: 16px;
    color: #495057;
    margin: 5px 0;
}

.info-card .small {
    font-size: 13px;
    color: #6c757d;
}

/* Privacy Notice */
.privacy-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 35px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.privacy-notice h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-notice h3 i {
    color: #007bff;
    font-size: 22px;
}

.privacy-notice p {
    line-height: 1.8;
    color: #495057;
    margin-bottom: 12px;
}

.privacy-notice p:last-child {
    margin-bottom: 0;
}

.privacy-notice a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

/* Loading State */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 768px) {
    .contact-page {
        padding: 60px 0 40px;
    }

    .page-title {
        font-size: 32px;
    }

    .form-container {
        padding: 30px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.half {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .contact-page {
        padding: 50px 0 30px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .page-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .form-container {
        padding: 20px;
        border-radius: 8px;
    }

    .form-group {
        margin-bottom: 25px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .contact-info h2 {
        font-size: 24px;
    }

    .info-card {
        padding: 25px;
    }

    .info-card i {
        font-size: 32px;
    }

    .privacy-notice {
        padding: 25px 20px;
    }

    .privacy-notice h3 {
        font-size: 18px;
    }

    .privacy-notice p {
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .contact-page {
        background: none;
    }

    .form-container {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .btn-secondary,
    .contact-info {
        display: none;
    }
}