/* Enhanced Contact Page Styles */

:root {
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover-border: rgba(233, 144, 28, 0.3);
    --hover-bg: rgba(255, 255, 255, 0.08);
    --text-color: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --focus-shadow: 0 0 0 3px rgba(233, 144, 28, 0.3);
    --glow: 0 5px 20px rgba(233, 144, 28, 0.2);
}

/* Page Header */
.page-header {
    text-align: center;
    margin: 40px 0 60px;
    position: relative;
}

.page-header .section-title {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--white);
    position: relative;
    display: inline-block;
}

.page-header .section-title:after {
    content: "";
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-orange), transparent);
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    border-radius: 2px;
}

.page-header .subtitle {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Login Button Responsive Fixes */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.lang-button, .login-button {
    background: linear-gradient(135deg, var(--accent-orange), #f7b042);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--glow);
    font-size: 16px;
}

.login-button {
    background: transparent;
    border: 2px solid var(--white);
    margin-right: 10px;
}

.login-button:hover, .lang-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.login-button:hover {
    background: var(--white);
    color: var(--primary-purple);
}

/* Enhanced Contact Layout */
.contact-section {
    margin: 50px 0 80px;
    position: relative;
}

.contact-section:before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-orange) 0%, rgba(68, 50, 110, 0) 70%);
    opacity: 0.1;
    top: -100px;
    right: -100px;
    z-index: -1;
}

.contact-section:after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-orange) 0%, rgba(68, 50, 110, 0) 70%);
    opacity: 0.1;
    bottom: -50px;
    left: -50px;
    z-index: -1;
}

.contact-container {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
    position: relative;
}

.rtl .contact-container {
    flex-direction: row-reverse;
}

/* Contact Info Section */
.contact-info, .contact-form {
    flex: 1;
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-info:hover, .contact-form:hover {
    transform: translateY(-5px);
    border-color: var(--card-hover-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.contact-info:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to left, var(--accent-orange), transparent);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.contact-form:before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--accent-orange), transparent);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.contact-info:hover:before, .contact-form:hover:before {
    opacity: 1;
    height: 7px;
}

.contact-info h2, .contact-form h2, .map-container h2 {
    color: var(--accent-orange);
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.contact-info h2:after, .contact-form h2:after, .map-container h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-orange);
    transition: width 0.3s ease;
}

.contact-info:hover h2:after, .contact-form:hover h2:after {
    width: 60px;
}

.contact-info p {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
}

/* Info Items */
.info-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
    transition: transform 0.3s ease;
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.info-item:hover {
    transform: translateX(-5px);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(233, 144, 28, 0.2), rgba(233, 144, 28, 0.1));
    border-radius: 50%;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(233, 144, 28, 0.3), rgba(233, 144, 28, 0.2));
}

.info-details h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--white);
}

.info-details p {
    margin-bottom: 0;
    font-size: 16px;
    color: var(--text-muted);
}

.info-item:hover .info-details p {
    color: var(--accent-orange);
}

/* Social Links */
.social-links {
    margin-top: 40px;
}

.social-links h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--accent-orange), #f7b042);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.icon {
    color: var(--white);
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover .icon {
    transform: scale(1.2);
}

/* Contact Form */
.contact-form {
    background-color: var(--card-bg);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 16px;
}

.form-group:focus-within label {
    color: var(--accent-orange);
    transform: translateX(-5px);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-orange);
    outline: none;
    box-shadow: var(--focus-shadow);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background: linear-gradient(135deg, var(--accent-orange), #f7b042);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.5s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(233, 144, 28, 0.3);
    z-index: 1;
}

.submit-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #f7b042, var(--accent-orange));
    transition: all 0.5s ease;
    z-index: -1;
}

.submit-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(233, 144, 28, 0.4);
}

.submit-button:hover:before {
    width: 100%;
}

/* Map Section */
.map-container {
    margin-top: 80px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    border-color: var(--card-hover-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.map-container:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-orange), transparent);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.map-container:hover:before {
    opacity: 1;
    width: 7px;
}

.map {
    height: 400px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container:hover .map {
    transform: scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.08));
    border: 2px dashed rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    font-size: 24px;
    position: relative;
    overflow: hidden;
}

.map-placeholder:after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 144, 28, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s infinite;
    z-index: 0;
}

.map-placeholder p {
    position: relative;
    z-index: 1;
    background: rgba(68, 50, 110, 0.7);
    padding: 10px 25px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes pulse {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.2); }
    100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
}

/* Form validation styles */
.form-group.error input, .form-group.error textarea {
    border-color: #ff3860;
    box-shadow: 0 0 0 3px rgba(255, 56, 96, 0.1);
}

.error-message {
    color: #ff3860;
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.error-message:before {
    content: "⚠️";
    margin-left: 5px;
    font-size: 16px;
}

.success-message {
    background: linear-gradient(145deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.2));
    color: #2ecc71;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    border: 1px solid rgba(46, 204, 113, 0.3);
    text-align: center;
    animation: fadeIn 0.5s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.success-message:before {
    content: "✓";
    display: block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border-radius: 50%;
    margin: 0 auto 15px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive design for contact page */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .rtl .contact-container {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
    
    .page-header .section-title {
        font-size: 36px;
    }
    
    .language-switcher {
        padding: 10px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .login-button, .lang-button {
        margin: 0 5px;
    }
}

@media (max-width: 768px) {
    .page-header {
        margin: 20px 0 40px;
    }
    
    .page-header .section-title {
        font-size: 32px;
    }
    
    .contact-info, .contact-form, .map-container {
        padding: 25px;
    }
    
    .info-item {
        padding: 10px;
    }
    
    .language-switcher {
        position: relative;
        top: 10px;
        right: 0;
        left: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .login-button, .lang-button {
        padding: 8px 12px;
        font-size: 14px;
        margin: 0 5px;
    }
}

@media (max-width: 576px) {
    .page-header .section-title {
        font-size: 28px;
    }
    
    .page-header .subtitle {
        font-size: 16px;
    }
    
    .contact-info h2, .contact-form h2, .map-container h2 {
        font-size: 24px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-icon {
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    .submit-button {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .map {
        height: 300px;
    }
    
    .language-switcher {
        flex-direction: column;
        align-items: center;
    }
    
    .login-button, .lang-button {
        width: 150px;
        text-align: center;
        margin: 5px 0;
    }
    
    .rtl .login-button {
        margin-left: 0;
    }
}