/* ========================================
   BLOOMIFY SOURCING - CONTACT PAGE
   ======================================== */

/* ---- PAGE HERO ---- */
.page-hero {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.page-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 1rem 0;
    line-height: 1.15;
}

.page-hero-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 550px;
    margin: 0 auto;
}

/* ---- CONTACT SECTION ---- */
.contact-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
}

/* ---- INFO CARDS ---- */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem; /* Balanced spacing */
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--border-hover);
    transform: translateX(6px);
}

.info-icon {
    width: 46px;
    height: 46px;
    background: var(--color-purple-dim);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-purple);
    flex-shrink: 0;
    transition: var(--transition);
}

.info-card:hover .info-icon {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.info-text {
    flex: 1;
}

.info-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.info-text p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.info-link {
    color: var(--color-cyan);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}

a.info-link:hover {
    color: var(--color-purple);
}

/* ---- GLOBAL PRESENCE CARD SPECIAL STYLES ---- */
.global-presence-card {
    align-items: flex-start !important;
}

.offices-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1rem;
    width: 100%;
}

.office-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

/* Clean, modern country labels using code font */
.country-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-family: var(--font-mono), monospace;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.country-badge.us {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.country-badge.cn {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.country-badge.pk {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.office-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.office-meta h5 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.office-meta .tag {
    font-size: 0.68rem;
    padding: 1px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-muted);
    font-weight: 400;
}

.office-meta .tag.hq {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.office-meta p {
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
}

.phone-link {
    font-family: var(--font-mono), monospace;
    font-size: 0.78rem;
    color: var(--color-cyan);
    text-decoration: none;
    transition: var(--transition);
}

.phone-link:hover {
    color: var(--color-purple);
    text-decoration: underline;
}

/* ---- WHAT HAPPENS NEXT ---- */
.what-next {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 0.5rem;
}

.what-next h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.next-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.next-step:last-child {
    margin-bottom: 0;
}

.next-num {
    width: 28px;
    height: 28px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.next-step p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ---- CONTACT FORM ---- */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c63ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* ---- BUDGET OPTIONS ---- */
.budget-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
}

.budget-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.budget-option input[type="radio"] {
    width: auto;
    accent-color: var(--color-purple);
    cursor: pointer;
}

.budget-option span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.budget-option:hover span {
    color: var(--text-primary);
}

/* ---- FORM SUBMIT ---- */
.form-submit {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    margin-top: 0.5rem;
    cursor: pointer;
}

.form-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.form-note i {
    color: var(--color-purple);
    font-size: 0.75rem;
}

/* ---- FORM SUCCESS ---- */
.form-success {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
}

.form-success.visible {
    display: block;
}

.success-icon {
    font-size: 4rem;
    color: var(--color-cyan);
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease forwards;
}

.form-success h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.form-success p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ---- WHATSAPP SECTION ---- */
.whatsapp-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

.whatsapp-banner {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
}

.whatsapp-banner:hover {
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.1);
}

.whatsapp-banner-icon {
    font-size: 3.5rem;
    color: #25D366;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-banner-text {
    flex: 1;
}

.whatsapp-banner-text h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.whatsapp-banner-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .whatsapp-banner {
        flex-direction: column;
        text-align: center;
    }

    .budget-options {
        grid-template-columns: 1fr 1fr;
    }

    .page-hero-title {
        font-size: 2rem;
    }
}