/* Contact Form Styles */
:root {
    --primary-color: #0066cc;
    --primary-hover: #0055aa;
    --form-border: #eaeaea;
    --form-bg: #f8f8f8;
    --input-bg: #ffffff;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
}

/* Footer Contact Form */
.contact-form-container {
    max-width: 500px;
    margin: 1.5rem auto;
    background-color: var(--form-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--form-border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-field input,
.form-field textarea {
    padding: 0.8rem;
    border: 1px solid var(--form-border);
    border-radius: 4px;
    background-color: var(--input-bg);
    font-family: 'Open Sauce One', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-field input:invalid,
.form-field textarea:invalid {
    border-color: var(--error-color);
    box-shadow: none;
}

.form-field input:invalid:focus,
.form-field textarea:invalid:focus {
    border-color: var(--error-color);
    box-shadow: 0 0 0 1px rgba(231, 76, 60, 0.2);
}

.form-field textarea {
    min-height: 100px;
    resize: vertical;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 0.3rem;
}

.terms-checkbox label {
    font-size: 0.85rem;
    line-height: 1.4;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-message {
    text-align: center;
    padding: 0.8rem;
    margin-top: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

.form-message.success,
.form-message.error {
    opacity: 1;
    max-height: 60px;
    margin-top: 1rem;
}

.form-message.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.form-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 100;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.floating-contact-btn:hover {
    transform: scale(1.05);
    background-color: var(--primary-hover);
}

.floating-contact-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.open {
    opacity: 1;
    visibility: visible;
}

.contact-modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.contact-modal.open .contact-modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.2rem;
    }
    
    .floating-contact-btn {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        border-radius: 0;
        box-shadow: none;
        padding: 1rem 0.75rem;
        background-color: transparent;
        border: none;
    }
    
    .form-title {
        font-size: 1.2rem;
    }
    
    .floating-contact-btn {
        bottom: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
    }
    
    .floating-contact-btn svg {
        width: 1.3rem;
        height: 1.3rem;
    }
    
    .contact-modal-content {
        width: 95%;
        padding: 1.2rem;
    }
} 