/* =============================================
   CONTACT SECTION - MODERN CARD STYLE
   With side-by-side fields & animated background
   ============================================= */

.contact-form {
    background: linear-gradient(135deg, #eceaeac9 0%, #f3f3f3 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Animated Artistic Background Elements */
.contact-form::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(246,173,85,0.15), rgba(237,137,54,0.1));
    border-radius: 50%;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.contact-form::after {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(45,55,72,0.08), rgba(26,32,44,0.05));
    border-radius: 50%;
    z-index: 0;
    animation: float 10s ease-in-out infinite reverse;
}

/* Additional animated decorative circles */
.contact-container::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(246,173,85,0.1), transparent);
    border-radius: 50%;
    z-index: 0;
    animation: pulse 6s ease-in-out infinite;
}

.contact-container::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 15%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(72,187,120,0.08), transparent);
    border-radius: 50%;
    z-index: 0;
    animation: pulse 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.contact-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* === LEFT SIDE - IMAGE WITH CARD OVERLAY === */
.contact-left {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.support-image-placeholder {
    position: relative;
    width: 100%;
    max-width: 400px;
    right: -200px;
}

/* Decorative curved shape behind image */
.support-image-placeholder::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #F6AD55, #ED8936);
    border-radius: 50%;
    opacity: 0.8;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

/* Image with phone mockup style */
.support-image-framed {
    width: 280px;
    height: 500px;
    border-radius: 40px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    object-fit: cover;
    border: 12px solid #1A202C;
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.support-image-framed:hover {
    transform: translateY(-5px);
}

/* Contact Info Card */
.contact-info-card {
    position: absolute;
    right: 300px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 2rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 2;
    min-width: 320px;
    transition: all 0.3s ease;
   
    }

.contact-info-card:hover {
    transform: translateY(-50%) translateX(5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.contact-info-card h3 {
    font-size: 1.8rem;
    color: #2D3748;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(246,173,85,0.2), rgba(237,137,54,0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #F6AD55;
    flex-shrink: 0;
}

.contact-info-text {
    flex: 1;
}

.contact-info-text a {
    color: #4A5568;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.6;
    transition: color 0.3s;
}

.contact-info-text a:hover {
    color: #F6AD55;
}

/* Hide text headings (we'll show info card instead) */
.support-image-placeholder .text h2,
.support-image-placeholder .text p {
    display: none;
}

/* === RIGHT SIDE - CONTACT FORM === */
.contact-right {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
   justify-content: center;
    z-index: 1;

}

.contact-title {
    font-size: 2.5rem;
    color: #2D3748;
    margin-bottom: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.contact-subtitle {
    color: #4A5568;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* === FORM STYLING WITH SIDE-BY-SIDE FIELDS === */
.calbank-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Form Row (for side-by-side fields) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 1rem;
    background: #F7FAFC;
    color: #2D3748;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #F6AD55;
    background: white;
    box-shadow: 0 0 0 3px rgba(246,173,85,0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #A0AEC0;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* === SUBMIT BUTTON === */
.submit-btn {
    background: linear-gradient(135deg, #F6AD55, #ED8936);
    color: white;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(246,173,85,0.3);
    margin-top: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(246,173,85,0.4);
    background: linear-gradient(135deg, #ED8936, #DD6B20);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* =============================================
   TABLET RESPONSIVE (768px - 1024px)
   ============================================= */
@media (max-width: 1024px) {
    .contact-form {
        padding: 5rem 2rem;
    }
    
    .contact-container {
        gap: 3rem;
    }
    
    .contact-info-card {
        right: 300px;
        min-width: 280px;
        padding: 1.75rem 2rem;
    }
    
    .contact-info-card h3 {
        font-size: 1.5rem;
    }
    
    .contact-title {
        font-size: 2.2rem;
    }
}

/* =============================================
   MOBILE RESPONSIVE (MAX 768px)
   ============================================= */
@media (max-width: 768px) {
    .contact-form {
        padding: 3rem 1rem;
    }
    
    .contact-form::before {
        width: 300px;
        height: 300px;
        bottom: -100px;
        left: -100px;
        opacity: 0.5;
    }
    
    .contact-form::after {
        width: 250px;
        height: 250px;
        top: -80px;
        right: -80px;
        opacity: 0.5;
    }
    
    /* Stack Vertically */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Left Side - Image with Card */
    .contact-left {
        order: 1;
        min-height: auto;
        padding: 0;
    }
    
    .support-image-placeholder {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .support-image-placeholder::before {
        width: 200px;
        height: 200px;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.6;
    }
    
    .support-image-framed {
        width: 200px;
        height: 360px;
        border: 8px solid #1A202C;
        border-radius: 30px;
        margin: 0 auto;
        right: 154px;
    }
    
    /* Info Card - Below Image on Mobile */
    .contact-info-card {
        position: relative;
        transform: none;
        min-width: auto;
        width: 80%;
        max-width: 400px;
        margin: 0 auto;
        padding: 1.5rem 1.75rem;
        right: 151px;
    }
    
    .contact-info-card:hover {
        transform: none;
    }
    
    .contact-info-card h3 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .contact-info-item {
        margin-bottom: 1rem;
    }
    
    .contact-info-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .contact-info-text a {
        font-size: 0.9rem;
    }
    
    /* Form - Below Everything */
    .contact-right {
        order: 2;
        padding: 1.75rem 1rem;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        right: 40px;
    }
    
    .contact-title {
        font-size: 1.35rem;
        text-align: center;
        line-height: 1.25;
        padding: 0 0.5rem;
        word-wrap: break-word;
    }
    
    .contact-subtitle {
        font-size: 0.85rem;
        text-align: center;
        margin-bottom: 1.5rem;
        line-height: 1.5;
        padding: 0 0.5rem;
    }
    
    /* Stack form fields on mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .calbank-contact-form {
        gap: 1rem;
    }
    
    .form-input {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    
    textarea.form-input {
        min-height: 80px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
        margin-top: 0.5rem;
    }
}

/* =============================================
   SMALL MOBILE (MAX 480px)
   ============================================= */
@media (max-width: 480px) {
    .contact-form {
        padding: 2.5rem 0.75rem;
    }
    
    .contact-container {
        gap: 2rem;
        max-width: 100%;
        padding: 0;
    }
    
    .support-image-framed {
        width: 180px;
        height: 320px;
        border: 6px solid #1A202C;
        border-radius: 25px;
    }
    
    .support-image-placeholder::before {
        width: 160px;
        height: 160px;
    }
    
    .contact-info-card {
        padding: 1.25rem 1.5rem;
        max-width: 95%;
        margin: 0 auto;
    }
    
    .contact-info-card h3 {
        font-size: 1.3rem;
    }
    
    .contact-info-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
    
    .contact-info-text a {
        font-size: 0.85rem;
    }
    
    .contact-info-item {
        margin-bottom: 0.9rem;
    }
    
    .contact-right {
        padding: 1.5rem 1rem;
        max-width: 95%;
        margin: 0 auto;
    }
    
    .contact-title {
        font-size: 1.2rem;
        line-height: 1.25;
        padding: 0 0.5rem;
    }
    
    .contact-subtitle {
        font-size: 0.8rem;
        line-height: 1.4;
        padding: 0 0.5rem;
    }
    
    .calbank-contact-form {
        gap: 0.9rem;
    }
    
    .form-input {
        padding: 0.8rem 0.9rem;
        font-size: 0.9rem;
    }
    
    textarea.form-input {
        min-height: 70px;
    }
    
    .submit-btn {
        padding: 0.9rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* =============================================
   EXTRA SMALL DEVICES (MAX 360px)
   ============================================= */
@media (max-width: 360px) {
    .contact-form {
        padding: 2rem 0.5rem;
    }
    
    .contact-container {
        gap: 1.75rem;
    }
    
    .support-image-framed {
        width: 160px;
        height: 280px;
        border: 5px solid #1A202C;
        border-radius: 22px;
    }
    
    .support-image-placeholder::before {
        width: 140px;
        height: 140px;
    }
    
    .contact-info-card {
        padding: 1rem 1.25rem;
        max-width: 98%;
    }
    
    .contact-info-card h3 {
        font-size: 1.2rem;
    }
    
    .contact-info-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .contact-info-text a {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .contact-info-item {
        margin-bottom: 0.85rem;
        gap: 0.75rem;
    }
    
    .contact-right {
        padding: 1.25rem 0.75rem;
        max-width: 98%;
    }
    
    .contact-title {
        font-size: 1.1rem;
        line-height: 1.25;
        padding: 0 0.25rem;
    }
    
    .contact-subtitle {
        font-size: 0.75rem;
        line-height: 1.4;
        padding: 0 0.25rem;
    }
    
    .calbank-contact-form {
        gap: 0.85rem;
    }
    
    .form-input {
        padding: 0.75rem 0.85rem;
        font-size: 0.85rem;
    }
    
    textarea.form-input {
        min-height: 65px;
    }
    
    .submit-btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }
}