/* ===================================
   CONTACT PAGE STYLES
   =================================== */

:root {
    --primary-purple: #6C5CE7;
    --primary-cyan: #00BCD4;
    --text-dark: #2D3436;
    --text-gray: #636E72;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* ===================================
   CONTACT HERO SECTION
   =================================== */

.contact-hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, #F5F7FA 0%, #E8EBF0 50%, #F5F7FA 100%);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-hero-left {
    display: flex;
    justify-content: center;
    position: relative;
}

.contact-hero-left::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(78, 205, 196, 0.15));
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

.contact-character {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(108, 92, 231, 0.2));
}

.contact-hero-right {
    padding-left: 2rem;
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.contact-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-info-item.phone {
    background: linear-gradient(135deg, #4ECDC4 0%, #00D9FF 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
}

.contact-info-item.phone:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
}

.contact-info-item.email {
    background: white;
    color: var(--text-dark);
    border: 2px solid #E8EBF0;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.1);
}

.contact-info-item.email:hover {
    transform: translateY(-3px);
    border-color: var(--primary-purple);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.2);
}

/* ===================================
   CONTACT FORM SECTION
   =================================== */

.contact-form-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #E8E6F2 0%, #E3E0F0 50%, #E8E6F2 100%);
    position: relative;
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: linear-gradient(135deg, #3D2F5B 0%, #2D1F4B 100%);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(108, 92, 231, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.form-container {
    position: relative;
    z-index: 2;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
}

/* Dynamic Form Styles */
.dynamic-form .form-group {
    margin-bottom: 1.5rem;
}

.dynamic-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.dynamic-form .required {
    color: #4ECDC4;
}

.dynamic-form .form-input,
.dynamic-form select,
.dynamic-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
}

.dynamic-form .form-input:focus,
.dynamic-form select:focus,
.dynamic-form textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.1);
}

.dynamic-form select option {
    background: #2D1F4B;
    color: white;
}

.dynamic-form .form-btn {
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #00D9FF 0%, #4ECDC4 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
    align-self: center;
}

.dynamic-form .form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

.dynamic-form .form-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.dynamic-form .form-description {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #00D9FF 0%, #4ECDC4 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
    align-self: center;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Mailbox Container */
.mailbox-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.mailbox-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(108, 92, 231, 0.3));
    border-radius: 20px;
}

.address-card {
    position: relative;
    margin-top: 2rem;
    background: rgba(108, 92, 231, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
}

.address-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.address-text {
    font-size: 0.9rem;
    color: white;
    line-height: 1.5;
    margin: 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media screen and (max-width: 968px) {
    .contact-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-hero-left {
        order: 2;
    }
    
    .contact-hero-right {
        padding-left: 0;
        text-align: center;
        order: 1;
    }
    
    .contact-title {
        font-size: 2.75rem;
    }
    
    .contact-info {
        justify-content: center;
    }
    
    .contact-form-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.5rem 2rem;
    }
    
    .mailbox-container {
        order: -1;
    }
    
    .address-card {
        position: static;
        margin-top: 2rem;
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .contact-hero {
        padding: 6rem 0 4rem;
    }
    
    .contact-title {
        font-size: 2.25rem;
    }
    
    .contact-description {
        font-size: 0.95rem;
    }
    
    .contact-character {
        max-width: 350px;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .mailbox-image {
        max-width: 300px;
    }
}

@media screen and (max-width: 480px) {
    .contact-hero {
        padding: 5rem 0 3rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-info {
        flex-direction: column;
        width: 100%;
    }
    
    .contact-info-item {
        width: 100%;
        justify-content: center;
    }
    
    .form-input {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        width: 100%;
        align-self: stretch;
    }
}
