/* Contact Page Specific Styles */

/* Contact Info Cards */
.contact-info-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.contact-info-card:hover {
    transform: translateY(-2px);
    border-color: #d1d5db;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.contact-info-card:hover::before {
    left: 100%;
}

.contact-info-card:hover {
    transform: translateY(-2px);
    border-color: #d1d5db;
}

.contact-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-icon.phone {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.contact-icon.email {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.contact-icon.address {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
}

/* Form Styles */
.contact-form-container {
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    padding: 2rem;
    position: relative;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
    background-color: #fafbff;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.submit-button {
    background: #374151;
    color: white;
    padding: 0.75rem 1.5rem;
    border: 2px solid #374151;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.submit-button: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-button:hover:before {
    left: 100%;
}

.submit-button:hover {
    background: #1f2937;
    border-color: #1f2937;
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-success {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.message-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.message::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    border-radius: 2px;
}

.message-success::before {
    background-color: #22c55e;
}

.message-error::before {
    background-color: #ef4444;
}

/* Map Section */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 400px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-placeholder {
    text-align: center;
    color: #64748b;
}

.map-placeholder svg {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.75rem;
    }
    
    .submit-button {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        margin: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .contact-info-card {
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

/* Hover Effects */
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #cbd5e1;
}

/* Focus Within Effect */
.form-group:focus-within .form-label {
    color: #6b7280;
}

/* Required Field Indicator */
.required {
    color: #ef4444;
    font-weight: bold;
}

/* Animation for contact info cards */
.contact-info-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.contact-info-card:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-info-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-info-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form animation */
.contact-form-container {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

/* Phone number formatting helper */
.phone-helper {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Success checkmark animation */
@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-checkmark {
    animation: checkmark 0.5s ease-out;
}
