/* Contact Page Styles */

/* Header with Glass Effect - Matching Home Page */
.main-header {
    background: linear-gradient(135deg, rgba(31, 42, 61, 0.9) 0%, rgba(51, 69, 99, 0.9) 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(141, 163, 199, 0.2);
    box-shadow: 0 2px 20px rgba(31, 42, 61, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

/* Navigation Styles */
.nav-link {
    text-decoration: none;
    color: var(--secondary-light) !important;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-light) !important;
}

.nav-link.active {
    color: var(--primary-light) !important;
}

/* Logo Styling */
.logo-img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Hero Section */
.contact-hero {
    background: linear-gradient(180deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    padding: 5rem 0;
    text-align: center;
    height: 50px;
    max-height: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
}

.contact-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero .hero-title {
    color: var(--secondary-light);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .contact-hero .hero-title {
        font-size: 2.5rem;
    }
}

.contact-section {
    padding: 4rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

/* Contact Information */
.contact-info {
    background: linear-gradient(180deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px var(--shadow);
    color: var(--secondary-light);
}

.contact-info h2 {
    color: var(--secondary-light);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--secondary-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-icon svg {
    color: var(--secondary-light);
}

.contact-details h3 {
    font-size: 1.1rem;
    color: var(--secondary-light);
    margin-bottom: 0.25rem;
    font-weight: 600;
    width: 100%;
}

.contact-details a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    width: 100%;
    display: block;
}

.contact-details a:hover {
    color: var(--white);
}

.contact-details p {
    color: var(--secondary-light);
    margin: 0;
    line-height: 1.4;
    opacity: 0.9;
    width: 100%;
}

/* Social Links */
.social-links {
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.social-links h3 {
    color: var(--secondary-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-light);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary-light);
    color: var(--white);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
    background: linear-gradient(180deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px var(--shadow);
}

.contact-form h2 {
    color: var(--secondary-light);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-light);
}

.required {
    color: var(--primary-light);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary-light);
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary-light);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

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

/* Urgency Checkbox */
.urgency-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.urgency-checkbox:hover {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.1);
}

.urgency-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-light);
}

.urgency-checkbox span {
    color: var(--secondary-light);
    font-weight: 500;
}

/* Submit Button */
.form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.form-submit:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary-light);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit.loading {
    position: relative;
    color: transparent;
}

.form-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Response Promise */
.response-promise {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: linear-gradient(180deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 3rem;
    box-shadow: 0 10px 40px var(--shadow);
}

.promise-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promise-icon svg {
    color: var(--secondary-light);
}

.promise-content {
    flex: 1;
}

.promise-content h3 {
    color: var(--secondary-light);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    width: 100%;
    display: block;
}

.promise-content p {
    color: var(--secondary-light);
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
    width: 100%;
    display: block;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 42, 61, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.success-modal-content {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--gray-light);
}

.success-icon {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.success-modal-content h2 {
    color: var(--secondary-dark);
    margin-bottom: 1rem;
}

.success-modal-content p {
    color: var(--secondary-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.success-close-btn {
    padding: 0.875rem 2rem;
    background: var(--primary-dark);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-close-btn:hover {
    background: var(--secondary-dark);
}

/* Error States */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #e74c3c;
}

.error-message {
    display: block;
    color: var(--primary-light);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .response-promise {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
}

/* RTL Support */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .contact-hero .hero-title,
html[dir="rtl"] .contact-hero .hero-content {
    text-align: center;
}

html[dir="rtl"] .contact-method {
    flex-direction: row-reverse;
}

html[dir="rtl"] .contact-details {
    width: 100%;
}

html[dir="rtl"] .contact-info,
html[dir="rtl"] .contact-info h2,
html[dir="rtl"] .contact-info p,
html[dir="rtl"] .contact-details,
html[dir="rtl"] .contact-details h3,
html[dir="rtl"] .contact-details p,
html[dir="rtl"] .contact-details a,
html[dir="rtl"] .social-links,
html[dir="rtl"] .social-links h3,
html[dir="rtl"] .promise-content,
html[dir="rtl"] .promise-content h3,
html[dir="rtl"] .promise-content p,
html[dir="rtl"] .form-label,
html[dir="rtl"] .urgency-checkbox span,
html[dir="rtl"] .form-submit span {
    text-align: right;
}

html[dir="rtl"] .contact-method .contact-details {
    margin-right: auto;
    margin-left: 0;
}

html[dir="rtl"] .form-input,
html[dir="rtl"] .form-textarea,
html[dir="rtl"] .form-select {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .urgency-checkbox {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .form-submit {
    flex-direction: row-reverse;
}

html[dir="rtl"] .response-promise {
    flex-direction: row-reverse;
}

html[dir="rtl"] .promise-content {
    text-align: right;
}

html[dir="rtl"] .promise-content h3,
html[dir="rtl"] .promise-content p {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .social-icons {
    justify-content: flex-start;
}

html[dir="rtl"] .success-modal-content {
    text-align: center;
}

html[dir="rtl"] .nav-menu {
    margin-left: 0;
    margin-right: auto;
}

@media (max-width: 768px) {
    html[dir="rtl"] .contact-method {
        align-items: center;
    }
    
    html[dir="rtl"] .social-icons {
        justify-content: center;
    }
    
    html[dir="rtl"] .contact-details,
    html[dir="rtl"] .contact-info h2,
    html[dir="rtl"] .contact-info p,
    html[dir="rtl"] .social-links h3 {
        text-align: center;
    }
    
    html[dir="rtl"] .promise-content {
        text-align: center;
    }
}