/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #4a3728;
    background: linear-gradient(180deg,
            #fffef8 0%,
            #fff9e6 30%,
            #ffefd5 60%,
            #ffe4b5 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Main Container */
.contact-main {
    padding-bottom: 0;
    background: transparent;
    min-height: 80vh;
}

/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg,
            #fffef8 0%,
            #fff9e6 20%,
            #ffefd5 40%,
            #ffe4b5 60%,
            #ffd699 80%,
            #ffcc80 100%);
    padding: 5rem 3rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Orbs */
.contact-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle,
            rgba(255, 215, 0, 0.3) 0%,
            rgba(243, 156, 18, 0.2) 40%,
            transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -8%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle,
            rgba(39, 174, 96, 0.15) 0%,
            rgba(46, 204, 113, 0.1) 40%,
            transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-title {
    font-size: 3.8rem;
    color: #3d2914;
    margin: 0 0 1.2rem 0;
    font-family: 'Georgia', serif;
    font-weight: 700;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.8);
}

/* Gradient highlight */
.contact-title::after {
    content: '✉️';
    display: inline-block;
    margin-left: 15px;
    font-size: 2.5rem;
    filter: drop-shadow(2px 2px 4px rgba(211, 84, 0, 0.3));
}

.contact-subtitle {
    font-size: 1.25rem;
    color: #6d4c41;
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    position: relative;
    z-index: 2;
    max-width: 550px;
    padding: 20px 30px;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.85) 0%,
            rgba(255, 250, 240, 0.8) 100%);
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    box-shadow:
        8px 8px 25px rgba(211, 84, 0, 0.1),
        -6px -6px 20px rgba(255, 255, 255, 0.95),
        inset 3px 3px 8px rgba(255, 255, 255, 1);
}

/* Contact Container */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 3rem;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Top line */
.contact-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: linear-gradient(90deg,
            transparent 0%,
            #ffd700 20%,
            #f39c12 50%,
            #ffd700 80%,
            transparent 100%);
    border-radius: 3px;
}

/* Contact Wrapper */
.contact-wrapper {
    display: flex;
    background: linear-gradient(145deg,
            #ffffff 0%,
            #fffef8 30%,
            #fff9e6 60%,
            #ffefd5 100%);
    border-radius: 50px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.95);
    position: relative;
    box-shadow:
        25px 25px 60px rgba(211, 84, 0, 0.18),
        -18px -18px 50px rgba(255, 255, 255, 0.95),
        inset 4px 4px 10px rgba(255, 255, 255, 1),
        inset -3px -3px 8px rgba(255, 215, 0, 0.08);
}

/* Contact Info Side */
.contact-info {
    flex: 1;
    background: linear-gradient(145deg,
            #d35400 0%,
            #e67e22 30%,
            #f39c12 60%,
            #f5b041 100%);
    color: #ffffff;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Decorations */
.contact-info::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.contact-info::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.contact-info h3 {
    margin: 0 0 1rem 0;
    font-size: 2rem;
    font-family: 'Georgia', serif;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

.contact-info h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    margin-top: 12px;
}

.contact-info-text {
    line-height: 1.9;
    margin: 0 0 2.5rem 0;
    opacity: 0.95;
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    gap: 1.2rem;
    position: relative;
    z-index: 2;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        6px 6px 15px rgba(160, 64, 0, 0.2),
        -4px -4px 12px rgba(255, 255, 255, 0.1),
        inset 2px 2px 4px rgba(255, 255, 255, 0.15);
}

.contact-info-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow:
        10px 10px 25px rgba(160, 64, 0, 0.25),
        -6px -6px 18px rgba(255, 255, 255, 0.15),
        inset 2px 2px 4px rgba(255, 255, 255, 0.2);
}

.contact-info-icon {
    font-size: 1.4rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg,
            #ffffff 0%,
            #fffaf0 100%);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow:
        4px 4px 10px rgba(160, 64, 0, 0.2),
        -2px -2px 8px rgba(255, 255, 255, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 1);
}

.contact-info-item:hover .contact-info-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow:
        6px 6px 15px rgba(160, 64, 0, 0.3),
        -3px -3px 10px rgba(255, 255, 255, 0.4),
        inset 2px 2px 4px rgba(255, 255, 255, 1);
}

.contact-info-item span:last-child {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Contact Form Card */
.contact-form-card {
    flex: 1.4;
    padding: 4rem 3.5rem;
    background: linear-gradient(145deg,
            #ffffff 0%,
            #fffef8 50%,
            #fff9e6 100%);
    position: relative;
}

/* Corner accent */
.contact-form-card::before {
    content: '🧈';
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 35px;
    opacity: 0.3;
    filter: drop-shadow(2px 2px 4px rgba(211, 84, 0, 0.2));
}

.contact-form-card h2 {
    margin: 0 0 0.8rem 0;
    color: #3d2914;
    font-family: 'Georgia', serif;
    font-size: 2rem;
    font-weight: 700;
}

.contact-form-card h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #ffd700);
    border-radius: 2px;
    margin-top: 12px;
    margin-bottom: 25px;
}

/* Success Message */
.contact-success-msg {
    background: linear-gradient(145deg,
            #f0fff4 0%,
            #dcf5e7 100%);
    color: #27ae60;
    padding: 1.3rem 1.8rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 2px solid rgba(39, 174, 96, 0.3);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow:
        6px 6px 15px rgba(39, 174, 96, 0.12),
        -4px -4px 12px rgba(255, 255, 255, 0.9),
        inset 2px 2px 5px rgba(255, 255, 255, 1);
}

.contact-success-msg::before {
    content: '✓';
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 3px 3px 8px rgba(39, 174, 96, 0.3);
}

/* Form Group */
.contact-form-group {
    margin-bottom: 1.8rem;
}

.contact-form-label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: #5d3a1a;
    font-size: 0.95rem;
    font-family: 'Segoe UI', sans-serif;
    padding-left: 5px;
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    font-size: 1rem;
    font-family: 'Segoe UI', sans-serif;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: linear-gradient(145deg,
            #ffffff 0%,
            #fffef8 100%);
    color: #3d2914;
    box-shadow:
        inset 4px 4px 10px rgba(211, 84, 0, 0.05),
        inset -3px -3px 8px rgba(255, 255, 255, 0.95),
        5px 5px 15px rgba(211, 84, 0, 0.08);
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
    color: #a08060;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: rgba(243, 156, 18, 0.6);
    box-shadow:
        inset 4px 4px 10px rgba(211, 84, 0, 0.08),
        inset -3px -3px 8px rgba(255, 255, 255, 1),
        8px 8px 20px rgba(211, 84, 0, 0.12),
        0 0 25px rgba(255, 215, 0, 0.2);
}

.contact-form-textarea {
    resize: vertical;
    min-height: 150px;
}

/* Contact Button */
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg,
            #d35400 0%,
            #e67e22 50%,
            #f39c12 100%);
    color: #ffffff;
    padding: 1.3rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
    box-shadow:
        10px 10px 30px rgba(211, 84, 0, 0.35),
        -6px -6px 20px rgba(255, 255, 255, 0.6),
        inset 3px 3px 8px rgba(255, 255, 255, 0.4),
        inset -3px -3px 8px rgba(160, 64, 0, 0.2);
}

.contact-btn::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow:
        15px 15px 40px rgba(211, 84, 0, 0.45),
        -8px -8px 25px rgba(255, 255, 255, 0.8),
        inset 3px 3px 8px rgba(255, 255, 255, 0.5),
        inset -3px -3px 8px rgba(160, 64, 0, 0.25),
        0 0 40px rgba(255, 215, 0, 0.3);
}

.contact-btn:hover::after {
    transform: translateX(5px);
}

.contact-btn:active {
    transform: translateY(-2px);
    box-shadow:
        6px 6px 20px rgba(211, 84, 0, 0.4),
        -3px -3px 15px rgba(255, 255, 255, 0.5),
        inset 5px 5px 12px rgba(160, 64, 0, 0.25);
}

/* Responsive Styles */

/* Large Tablets */
@media (max-width: 1100px) {
    .contact-hero {
        padding: 4rem 2rem 5rem;
    }

    .contact-title {
        font-size: 3.2rem;
    }

    .contact-title::after {
        font-size: 2rem;
    }

    .contact-subtitle {
        font-size: 1.15rem;
        padding: 18px 25px;
    }

    .contact-container {
        padding: 4rem 2rem;
    }

    .contact-info,
    .contact-form-card {
        padding: 3rem 2.5rem;
    }

    .contact-info h3 {
        font-size: 1.8rem;
    }

    .contact-form-card h2 {
        font-size: 1.8rem;
    }
}

/* Tablets */
@media (max-width: 1005px) {
    .contact-hero {
        padding: 3.5rem 1.5rem 4.5rem;
    }

    .contact-title {
        font-size: 2.8rem;
    }

    .contact-title::after {
        display: block;
        margin-left: 0;
        margin-top: 10px;
    }

    .contact-subtitle {
        font-size: 1.1rem;
        padding: 16px 22px;
    }

    .contact-container {
        padding: 3.5rem 1.5rem;
    }

    .contact-container::before {
        width: 100px;
    }

    .contact-wrapper {
        flex-direction: column;
        border-radius: 40px;
    }

    .contact-info {
        padding: 3rem 2.5rem;
        border-radius: 0;
    }

    .contact-info::before,
    .contact-info::after {
        opacity: 0.5;
    }

    .contact-form-card {
        padding: 3rem 2.5rem;
    }

    .contact-form-card::before {
        top: 20px;
        right: 25px;
        font-size: 30px;
    }

    .contact-form-card h2 {
        font-size: 1.7rem;
    }
}

/* Mobile Landscape */
@media (max-width: 680px) {
    .contact-hero {
        padding: 3rem 1rem 4rem;
    }

    .contact-hero::before,
    .contact-hero::after {
        display: none;
    }

    .contact-title {
        font-size: 2.3rem;
    }

    .contact-title::after {
        font-size: 1.6rem;
    }

    .contact-subtitle {
        font-size: 1rem;
        padding: 14px 18px;
        border-radius: 20px;
    }

    .contact-container {
        padding: 3rem 1rem;
    }

    .contact-container::before {
        width: 80px;
        height: 4px;
    }

    .contact-wrapper {
        border-radius: 35px;
        border-width: 3px;
    }

    .contact-info,
    .contact-form-card {
        padding: 2.5rem 1.8rem;
    }

    .contact-info h3 {
        font-size: 1.6rem;
    }

    .contact-info h3::after {
        width: 50px;
        height: 3px;
        margin-top: 10px;
    }

    .contact-info-text {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .contact-info-item {
        padding: 1rem 1.2rem;
        border-radius: 16px;
        gap: 1rem;
    }

    .contact-info-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .contact-info-item span:last-child {
        font-size: 0.9rem;
    }

    .contact-form-card::before {
        display: none;
    }

    .contact-form-card h2 {
        font-size: 1.5rem;
    }

    .contact-form-card h2::after {
        width: 60px;
        height: 3px;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .contact-form-input,
    .contact-form-textarea {
        padding: 1rem 1.2rem;
        border-radius: 16px;
    }

    .contact-btn {
        padding: 1.1rem 2rem;
        font-size: 0.95rem;
        border-radius: 40px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .contact-hero {
        padding: 2.5rem 0.8rem 3.5rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-title::after {
        font-size: 1.4rem;
        margin-top: 8px;
    }

    .contact-subtitle {
        font-size: 0.95rem;
        padding: 12px 15px;
        border-radius: 18px;
    }

    .contact-container {
        padding: 2.5rem 0.8rem;
    }

    .contact-container::before {
        width: 60px;
    }

    .contact-wrapper {
        border-radius: 30px;
        border-width: 2px;
        box-shadow:
            18px 18px 45px rgba(211, 84, 0, 0.15),
            -12px -12px 35px rgba(255, 255, 255, 0.9),
            inset 3px 3px 8px rgba(255, 255, 255, 1);
    }

    .contact-info,
    .contact-form-card {
        padding: 2rem 1.5rem;
    }

    .contact-info h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .contact-info-text {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1.8rem;
    }

    .contact-info-item {
        padding: 0.9rem 1rem;
        border-radius: 14px;
        margin-bottom: 1rem;
        gap: 0.9rem;
    }

    .contact-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .contact-info-item span:last-child {
        font-size: 0.85rem;
    }

    .contact-form-card h2 {
        font-size: 1.4rem;
    }

    .contact-form-card h2::after {
        width: 50px;
        margin-bottom: 18px;
    }

    .contact-form-group {
        margin-bottom: 1.5rem;
    }

    .contact-form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .contact-form-input,
    .contact-form-textarea {
        padding: 0.95rem 1rem;
        font-size: 0.95rem;
        border-radius: 14px;
    }

    .contact-form-textarea {
        min-height: 130px;
    }

    .contact-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        letter-spacing: 1.5px;
        border-radius: 35px;
        border-width: 2px;
    }

    .contact-btn::after {
        font-size: 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .contact-hero {
        padding: 2rem 0.6rem 3rem;
    }

    .contact-title {
        font-size: 1.75rem;
    }

    .contact-title::after {
        font-size: 1.2rem;
    }

    .contact-subtitle {
        font-size: 0.88rem;
        padding: 10px 12px;
    }

    .contact-container {
        padding: 2rem 0.6rem;
    }

    .contact-wrapper {
        border-radius: 26px;
    }

    .contact-info,
    .contact-form-card {
        padding: 1.8rem 1.2rem;
    }

    .contact-info h3 {
        font-size: 1.25rem;
    }

    .contact-info-text {
        font-size: 0.85rem;
    }

    .contact-info-item {
        padding: 0.8rem 0.7rem;
        border-radius: 12px;
        gap: 0.8rem;
    }

    .contact-info-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .contact-info-item span:last-child {
        font-size: 0.8rem;
    }

    .contact-form-card h2 {
        font-size: 1.25rem;
    }

    .contact-form-label {
        font-size: 0.85rem;
    }

    .contact-form-input,
    .contact-form-textarea {
        padding: 0.85rem 0.9rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .contact-form-textarea {
        min-height: 110px;
    }

    .contact-btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .contact-success-msg {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 16px;
    }

    .contact-success-msg::before {
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .contact-hero {
        padding: 2rem 2rem 2.5rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-subtitle {
        padding: 12px 18px;
    }

    .contact-container {
        padding: 2rem;
    }

    .contact-wrapper {
        flex-direction: row;
    }

    .contact-info,
    .contact-form-card {
        padding: 2rem;
    }

    .contact-info-item {
        padding: 0.8rem 1rem;
        margin-bottom: 0.8rem;
    }

    .contact-form-group {
        margin-bottom: 1.2rem;
    }

    .contact-form-input,
    .contact-form-textarea {
        padding: 0.85rem 1rem;
    }

    .contact-form-textarea {
        min-height: 100px;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}