/**
 * Contact Page Styles - Matching Blog Page Design
 * Portfolio Website by Amr Farag
 */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0A0E1A;
    color: #FFFFFF;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================== HERO HEADER SECTION ==================== */

.contact-hero {
    position: relative;
    background: linear-gradient(135deg, 
        #0F1624 0%, 
        #1a2332 25%,
        #0d1520 50%,
        #1f2937 75%,
        #0F1624 100%
    );
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 149, 0, 0.08) 0%, transparent 70%);
    z-index: 1;
}

.contact-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 149, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 149, 0, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1;
    opacity: 0.6;
}

.contact-hero .container {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    color: #94A3B8;
    font-weight: 400;
}

/* ==================== MAIN CONTACT SECTION ==================== */

.contact-main-section {
    padding: 80px 0;
    background: linear-gradient(180deg, 
        rgba(15, 22, 36, 0.95) 0%, 
        rgba(25, 32, 48, 0.98) 50%,
        rgba(15, 22, 36, 0.95) 100%
    );
    position: relative;
    overflow: hidden;
}

.contact-main-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 149, 0, 0.06) 0%, transparent 70%);
    z-index: 1;
}

.contact-main-section .container {
    position: relative;
    z-index: 10;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

/* ==================== LEFT SIDE - CONTACT DETAILS ==================== */

.contact-left {
    position: relative;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 40px;
    position: relative;
    padding-left: 16px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #FF9500;
    border-radius: 4px;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    font-size: 20px;
    color: #FF9500;
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-text {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 8px;
}

.contact-value {
    display: block;
    font-size: 18px;
    font-weight: 400;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: #FF9500;
}

a.contact-value {
    cursor: pointer;
}

p.contact-value {
    line-height: 1.6;
}

/* ==================== WHATSAPP BUTTON ==================== */

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: #25D366;
    border-radius: 12px;
    text-decoration: none;
    margin: 40px 0;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn .fa-whatsapp {
    font-size: 32px;
    color: #FFFFFF;
}

.whatsapp-btn > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.whatsapp-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2px;
}

.whatsapp-text {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
}

.whatsapp-arrow {
    font-size: 18px;
    color: #FFFFFF;
}

/* ==================== SOCIAL SECTION ==================== */

.social-section {
    margin-top: 48px;
}

.social-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.social-btn i {
    font-size: 20px;
    color: #FFFFFF;
}

.social-btn.linkedin {
    background: #0077B5;
}

.social-btn.twitter {
    background: #1DA1F2;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
}

.social-btn.facebook {
    background: #4267B2;
}

/* ==================== RIGHT SIDE - CONTACT FORM (BLOG CARD STYLE) ==================== */

.contact-right {
    background: linear-gradient(
        135deg,
        rgba(255, 149, 0, 0.05) 0%,
        rgba(30, 38, 55, 0.7) 50%,
        rgba(255, 149, 0, 0.05) 100%
    );
    border: 2px solid rgba(255, 149, 0, 0.3);
    border-radius: 20px;
    padding: 48px;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 10px 35px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(255, 149, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    transition: all 0.4s ease;
}

.contact-right::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    border-top: 2px solid rgba(255, 149, 0, 0.4);
    border-right: 2px solid rgba(255, 149, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 1;
}

.contact-right:hover {
    border-color: #FF9500;
    background: linear-gradient(
        135deg,
        rgba(255, 149, 0, 0.08) 0%,
        rgba(30, 38, 55, 0.85) 50%,
        rgba(255, 149, 0, 0.08) 100%
    );
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.5),
        0 0 45px rgba(255, 149, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.contact-right:hover::before {
    border-color: #FF9500;
}

.contact-right .section-title,
.contact-right .form-subtitle,
.contact-right form {
    position: relative;
    z-index: 2;
}

.form-subtitle {
    font-size: 15px;
    color: #9CA3AF;
    margin-top: -24px;
    margin-bottom: 32px;
}

/* Alert Messages */
.alert-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.alert-message i {
    font-size: 18px;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: #141925;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 15px;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6B7280;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF9500;
    background: #1E2637;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #EF4444;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.error-msg {
    color: #EF4444;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: #FF9500;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.submit-btn:hover:not(:disabled) {
    background: #FFB340;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 149, 0, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn i {
    font-size: 16px;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .contact-main-section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .contact-right {
        padding: 32px 24px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .whatsapp-btn {
        padding: 16px 20px;
    }
    
    .social-btn {
        width: 48px;
        height: 48px;
    }
    
    .social-btn i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .contact-main-section {
        padding: 40px 0;
    }
    
    .contact-hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .contact-item {
        margin-bottom: 24px;
    }
    
    .contact-value {
        font-size: 16px;
    }
    
    .whatsapp-btn {
        text-align: center;
        gap: 12px;
    }
    
    .whatsapp-arrow {
        display: none;
    }
    
    .contact-right {
        padding: 24px 20px;
    }
    
    .social-links {
        gap: 12px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}