/* =========================================================
   ADVERTISE PAGE: Service Cards & Inquiry Flow
   ========================================================= */

/* --- GLOBAL SMOOTH SCROLL --- */
html {
    scroll-behavior: smooth;
}

main {
    background-color: var(--parchment); 
    color: var(--text-main);
    /* Restore the scroll ability within the flex container */
    flex: 1 1 auto;
    overflow-y: auto !important; 
    display: block;
    -webkit-overflow-scrolling: touch;
}

.advertise-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px;
    box-sizing: border-box;
}

/* --- INTRO SECTION --- */
.advertise-intro {
    text-align: center;
    margin-bottom: 50px;
}

.advertise-intro h2 {
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 2rem;
    margin-bottom: 10px;
}

.advertise-intro p {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

/* --- SERVICE CARDS --- */
.service-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

.service-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-stone);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    border-color: var(--accent-gold);
}

.service-icon {
    font-size: 40px;
    margin-right: 30px;
    flex-shrink: 0;
}

.service-info {
    flex-grow: 1;
}

.service-info h3 {
    margin: 0 0 8px 0;
    color: var(--text-main);
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.service-info p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-main);
    opacity: 0.8;
    font-size: 0.95rem;
}

/* --- FORM INTEGRATION (The Fix) --- */
.inquiry-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.inquiry-divider::before, .inquiry-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-stone);
}

.inquiry-divider span {
    padding: 0 15px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--accent-gold);
    font-weight: bold;
}

.form-embed-wrapper {
    background: var(--form-bg); 
    border: 2px solid var(--accent-gold); 
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    /* CRITICAL: We let the wrapper be as tall as the iframe 
       so the main page scrollbar handles everything.
    */
    height: auto; 
    overflow: hidden; 
}

.form-embed-wrapper iframe {
    width: 100%;
    height: 900px; /* Fixed height so it doesn't collapse */
    border: none;
    display: block;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 650px) {
    .advertise-container { padding: 30px 15px; }
    .service-card { flex-direction: column; text-align: center; padding: 25px; }
    .service-icon { margin-right: 0; margin-bottom: 15px; }
    .advertise-intro h2 { font-size: 1.6rem; }
}