/**
 * Contact Page Styles
 *
 * @package elegant
 */

/* ========================================
   Contact Main
   ======================================== */
.contact-main {
    padding: 0;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.contact-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Header */
.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-main-title {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 15px 0;
}

.contact-main-subtitle {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1.1rem;
    color: #5a6a7a;
    margin: 0;
}

/* ========================================
   Contact Grid
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

/* ========================================
   Info Card
   ======================================== */
.info-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.info-card-title {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 30px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
}

.info-card-title i {
    color: #c9a227;
    font-size: 1.3rem;
}

/* Info Item */
.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f2f5;
}

.info-item:last-of-type {
    border-bottom: none;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    background: linear-gradient(135deg, #c9a227 0%, #e8c547 100%);
    transform: scale(1.05);
}

.info-icon i {
    color: #ffffff;
    font-size: 1.1rem;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: #8a9aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    color: #1a3a5c;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

a.info-value:hover {
    color: #c9a227;
}

/* WhatsApp Button */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 25px;
    background: #25d366;
    color: #ffffff;
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn i {
    font-size: 1.3rem;
}

/* ========================================
   Form Card
   ======================================== */
.form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.form-card-title {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 10px 0;
}

.form-card-desc {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1rem;
    color: #5a6a7a;
    margin: 0 0 30px 0;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
	position:relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a3a5c;
}

.form-group label .required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1rem;
    padding: 15px 20px;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    background: #f8f9fa;
    color: #1a3a5c;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #c9a227;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #c9a227 0%, #e8c547 100%);
    color: #ffffff;
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn i {
    font-size: 1rem;
}

/* Form Message */
.form-message {
    display: none;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #d4edda;
    color: #155724;
    border-radius: 12px;
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1rem;
}

.success-message i {
    font-size: 1.2rem;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 12px;
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1rem;
}

.error-message i {
    font-size: 1.2rem;
}

/* Form Validation States */
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.form-group.has-error input:focus,
.form-group.has-error textarea:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.form-group.has-error label {
    color: #e74c3c;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Form Message Animation */
.form-message.success {
    display: block;
    animation: slideDown 0.3s ease;
}

.form-message.error {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Map Section
   ======================================== */
.map-section {
    width: 100%;
    height: 450px;
    background: #e8ecf0;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Map Placeholder */
.map-placeholder .map-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder-content {
    text-align: center;
    color: #8a9aaa;
}

.map-placeholder-content i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.map-placeholder-content p {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1.1rem;
    margin: 0;
}

/* ========================================
   RTL Support
   ======================================== */
[dir="rtl"] .contact-section {
    direction: rtl;
}

[dir="rtl"] .submit-btn i {
    transform: rotate(180deg);
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .info-card,
    .form-card {
        padding: 35px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 20px;
    }
    
    .contact-header {
        margin-bottom: 40px;
    }
    
    .contact-main-title {
        font-size: 1.8rem;
    }
    
    .contact-main-subtitle {
        font-size: 1rem;
    }
    
    .info-card,
    .form-card {
        padding: 30px 25px;
        border-radius: 16px;
    }
    
    .info-card-title {
        font-size: 1.2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .map-section {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 50px 15px;
    }
    
    .info-card,
    .form-card {
        padding: 25px 20px;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }
    
    .info-icon i {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 14px 30px;
    }
    
    .map-section {
        height: 300px;
    }
}

