/* Contact Section - Adapted from Old Design with Orange Theme */
.contact {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--bg-gray) 0%, white 100%);
    position: relative;
    scroll-margin-top: 30px;
}

.contact .container {
    max-width: 1240px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

/* Contact Cards */
.contact-info-card,
.contact-form-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.contact-info-card::before,
.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.7;
}

.contact-info-card:hover,
.contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow:
            0 25px 70px rgba(255, 107, 53, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 107, 53, 0.2);
}

.card-header-contact {
    margin-bottom: 2rem;
    text-align: left;
}

.card-header-contact h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.card-header-contact p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact Methods */
.contact-methods {
    margin-bottom: 2.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 107, 53, 0.03);
    border-radius: 12px;
    transition: all 0.3s var(--ease);
    border: 1px solid transparent;
}

.contact-method:hover {
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateX(5px);
    background: rgba(255, 107, 53, 0.05);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.contact-method:hover .method-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.method-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.method-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Social Links in Contact */
.social-links-contact {
    border-top: 1px solid rgba(255, 107, 53, 0.1);
    padding-top: 2rem;
}

.social-links-contact h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.social-icons-contact {
    display: flex;
    gap: 1rem;
}

.social-icon-contact {
    width: 45px;
    height: 45px;
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s var(--ease);
    font-size: 1.1rem;
}

.social-icon-contact:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Modern Form */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.form-group-contact {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group-contact label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group-contact input,
.form-group-contact textarea {
    background: var(--bg-gray);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-dark);
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.3s var(--ease);
    resize: none;
    width: 100%;
    box-sizing: border-box;
}

.form-group-contact input:focus,
.form-group-contact textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-group-contact input::placeholder,
.form-group-contact textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* Submit Button */
.submit-btn-contact {
    position: relative;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    margin-top: 1rem;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.submit-btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
}

.submit-btn-contact:active {
    transform: translateY(-1px);
}

.submit-btn-contact:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn-contact:hover .btn-glow {
    left: 100%;
}

/* Phone Verification Card */
.phone-verification-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid transparent;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-verification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.7;
}

.phone-verification-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    animation: phoneCardPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes phoneCardPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.8;
    }
}

.phone-card-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.phone-card-toggle:hover {
    background: rgba(255, 107, 53, 0.05);
}

.toggle-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
}

.phone-toggle-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.phone-card-toggle:hover .phone-toggle-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.toggle-content {
    text-align: left;
    flex: 1;
}

.toggle-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.toggle-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.4;
}

.toggle-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.phone-verification-card.expanded .toggle-arrow {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.phone-verification-card.expanded .toggle-arrow i {
    transform: rotate(180deg);
}

.phone-verification-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 2rem;
}

.phone-verification-card.expanded .phone-verification-content {
    max-height: 800px;
    opacity: 1;
    padding: 0 2rem 2rem;
}

.phone-input-section {
    margin-bottom: 1.5rem;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.country-code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-gray);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-dark);
    font-weight: 600;
    white-space: nowrap;
}

.country-code i {
    color: var(--primary-color);
}

.phone-input-wrapper input {
    flex: 1;
    background: var(--bg-gray);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.phone-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.submit-phone-btn {
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.submit-phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.submit-phone-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Phone Success Section */
.phone-success-section {
    padding-top: 1.5rem;
    animation: revealSlideIn 0.6s ease-out;
    text-align: center;
}

@keyframes revealSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(255, 107, 53, 0.1);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
}

.success-icon-large i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.phone-success-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.phone-success-section p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.response-timeline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 25px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.response-timeline i {
    font-size: 1.1rem;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZED
   ======================================== */

/* Tablet (991px and below) */
@media (max-width: 991px) {
    .contact {
        scroll-margin-top: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .phone-card-toggle {
        padding: 1.25rem 1.5rem;
    }

    .phone-toggle-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .toggle-content h3 {
        font-size: 1.15rem;
    }

    .toggle-content p {
        font-size: 0.9rem;
    }

    .phone-verification-content {
        padding: 0 1.5rem;
    }

    .phone-verification-card.expanded .phone-verification-content {
        padding: 0 1.5rem 1.5rem;
    }
}

@media (max-width: 767px) {
    .contact {
        padding: 3rem 1.25rem 2.5rem;
        scroll-margin-top: 30px;
    }

    .contact-grid {
        gap: 1.5rem;
        margin-bottom: 1rem; /* Reduced gap to direct contact card */
    }

    /* HIDE "Get In Touch" card on mobile */
    .contact-info-card {
        display: none;
    }

    /* Make "Send Message" card full width and compact */
    .contact-form-card {
        padding: 1.75rem 1.25rem; /* Reduced padding */
        border-radius: 20px;
        max-width: 500px;
        margin: 0 auto;
    }

    .card-header-contact {
        margin-bottom: 1.25rem; /* Reduced spacing */
    }

    .card-header-contact h2 {
        font-size: 1.5rem; /* Smaller title */
    }

    .card-header-contact p {
        font-size: 0.875rem; /* Smaller description */
        line-height: 1.5;
    }

    /* Compact form spacing */
    .modern-form {
        gap: 1rem; /* Reduced gap between form fields */
    }

    .form-group-contact label {
        font-size: 0.875rem;
        margin-bottom: 0.375rem; /* Tighter spacing */
    }

    .form-group-contact input,
    .form-group-contact textarea {
        padding: 0.875rem; /* Smaller padding */
        font-size: 0.9375rem;
        border-radius: 10px;
    }

    /* Smaller textarea */
    .form-group-contact textarea {
        min-height: 100px; /* Reduced height */
    }

    /* Compact submit button */
    .submit-btn-contact {
        padding: 1rem 1.5rem; /* Smaller button */
        font-size: 0.9375rem;
        margin-top: 0.5rem; /* Less top margin */
        border-radius: 12px;
    }

    /* Phone card adjustments - SMALLER FONTS */
    .phone-card-toggle {
        padding: 1rem 1.25rem;
    }

    .toggle-left {
        gap: 0.875rem;
    }

    .phone-toggle-icon {
        width: 42px; /* Smaller icon */
        height: 42px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .toggle-content h3 {
        font-size: 0.9375rem; /* Smaller heading */
        line-height: 1.3;
    }

    .toggle-content p {
        font-size: 0.8125rem; /* Smaller description */
        line-height: 1.4;
    }

    .toggle-arrow {
        width: 32px; /* Smaller arrow */
        height: 32px;
        font-size: 0.9rem;
    }

    .phone-verification-content {
        padding: 0 1.25rem;
    }

    .phone-verification-card.expanded .phone-verification-content {
        padding: 0 1.25rem 1.25rem;
    }

    /* PHONE INPUT: +91 and input on same line, button on next row */
    .phone-input-wrapper {
        flex-wrap: wrap; /* Allow wrapping */
        gap: 0.625rem;
        align-items: stretch;
    }

    .country-code {
        width: auto; /* Auto width */
        justify-content: center;
        padding: 0.875rem 0.875rem;
        font-size: 0.9375rem;
        flex-shrink: 0;
    }

    .phone-input-wrapper input {
        flex: 1; /* Take remaining space on first row */
        min-width: 0; /* Allow proper flex behavior */
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }

    .submit-phone-btn {
        width: 100%; /* Full width on second row */
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
}

/* Small Mobile (575px and below) */
@media (max-width: 575px) {
    .contact {
        padding: 2.5rem 1rem 2rem;
        scroll-margin-top: 65px;
    }

    .contact-grid {
        margin-bottom: 0.875rem; /* Less space */
    }

    .contact-form-card {
        padding: 1.5rem 1rem;
        border-radius: 18px;
    }

    .card-header-contact {
        margin-bottom: 1rem;
    }

    .card-header-contact h2 {
        font-size: 1.25rem; /* Even smaller on small screens */
    }

    .card-header-contact p {
        font-size: 0.8125rem;
    }

    .modern-form {
        gap: 0.875rem;
    }

    .form-group-contact label {
        font-size: 0.8125rem;
    }

    .form-group-contact input,
    .form-group-contact textarea {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .form-group-contact textarea {
        min-height: 90px;
    }

    .submit-btn-contact {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Phone card - SMALLER FONTS */
    .phone-card-toggle {
        padding: 0.875rem 1rem;
        gap: 0.625rem;
    }

    .phone-toggle-icon {
        width: 38px; /* Smaller */
        height: 38px;
        font-size: 0.9rem;
    }

    .toggle-left {
        gap: 0.75rem;
    }

    .toggle-content h3 {
        font-size: 0.875rem; /* Smaller */
    }

    .toggle-content p {
        font-size: 0.75rem; /* Smaller */
    }

    .toggle-arrow {
        width: 30px; /* Smaller */
        height: 30px;
        font-size: 0.85rem;
    }

    /* Phone input: +91 and input same line, button next row */
    .phone-input-wrapper {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .country-code {
        width: auto;
        padding: 0.75rem 0.75rem;
        font-size: 0.875rem;
    }

    .phone-input-wrapper input {
        flex: 1;
        min-width: 0;
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }

    .submit-phone-btn {
        width: 100%; /* Full width on second row */
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        margin-top: 0.625rem;
    }

    .success-icon-large {
        width: 70px;
        height: 70px;
    }

    .success-icon-large i {
        font-size: 2rem;
    }

    .phone-success-section h3 {
        font-size: 1.3rem;
    }

    .phone-success-section p {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile (479px and below) */
@media (max-width: 479px) {
    .contact {
        padding: 2rem 0.75rem 1.75rem;
    }

    .contact-grid {
        margin-bottom: 0.75rem; /* Very tight spacing */
    }

    .contact-form-card {
        padding: 1.25rem 0.875rem;
    }

    .card-header-contact h2 {
        font-size: 1.125rem; /* Smaller */
    }

    .card-header-contact p {
        font-size: 0.8rem;
    }

    .form-group-contact input,
    .form-group-contact textarea {
        padding: 0.625rem;
        font-size: 0.8125rem;
    }

    .form-group-contact textarea {
        min-height: 80px;
    }

    .submit-btn-contact {
        padding: 0.8rem 1rem;
        font-size: 0.8125rem;
    }

    .phone-verification-card::after {
        display: none;
    }

    /* Very compact phone card */
    .phone-card-toggle {
        padding: 0.75rem 0.875rem;
    }

    .phone-toggle-icon {
        width: 36px; /* Very small */
        height: 36px;
        font-size: 0.85rem;
    }

    .toggle-content h3 {
        font-size: 0.8125rem; /* Very small */
    }

    .toggle-content p {
        font-size: 0.6875rem; /* Very small */
        line-height: 1.3;
    }

    .toggle-arrow {
        width: 28px; /* Very small */
        height: 28px;
        font-size: 0.8rem;
    }

    /* Phone input: +91 and input same line, button next row */
    .phone-input-wrapper {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .country-code {
        width: auto;
        padding: 0.625rem 0.625rem;
        font-size: 0.8125rem;
    }

    .phone-input-wrapper input {
        flex: 1;
        min-width: 0;
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }

    .submit-phone-btn {
        width: 100%; /* Full width on second row */
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        margin-top: 0.5rem;
    }

    .success-icon-large {
        width: 60px;
        height: 60px;
    }

    .success-icon-large i {
        font-size: 1.8rem;
    }

    .phone-success-section h3 {
        font-size: 1.2rem;
    }

    .phone-success-section p {
        font-size: 0.85rem;
    }

    .response-timeline {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}