:root {
    /* Default theme values - will be overridden by Google Sheets */
    --primary: #1877f2;
    --primary-hover: #166fe5;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border: #e2e8f0;
    --bg-top: #bedffa;
    --bg-bottom: #f2f3f7;
    --bg-white: #ffffff;
    --font-family: 'Inter', sans-serif;
    --font-size-title: 1.15rem;
    --font-size-button: 14px;
    --font-size-feature-title: 1.15rem;
    --font-size-feature-text: 0.8rem;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --border-radius: 50px;
    --border-radius-btn: 4px;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-button: 0 4px 15px rgba(24, 119, 242, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

.top-section {
    flex: 1.2;
    background: var(--bg-top);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.bottom-section {
    flex: 0.8;
    background: var(--bg-bottom);
    position: relative;
    z-index: 1;
}

.top-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 60%);
    z-index: -1;
    pointer-events: none;
}

.main-title {
    font-size: var(--font-size-title);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.search-pill {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    padding: 6px 6px 6px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 50px;
    width: 100%;
    max-width: 600px;
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.flag-icon {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

.divider {
    height: 24px;
    width: 1px;
    background-color: var(--border);
    margin: 0 16px;
}

input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--text-dark);
    background: transparent;
}

input::placeholder {
    color: #94a3b8;
}

.explore-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-button);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.phone-icon-btn {
    width: 16px;
    height: 16px;
}

.explore-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3);
}
.explore-btn:active:not(:disabled) {
    transform: translateY(0);
}
.explore-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

.features-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-circle {
    width: 48px;
    height: 48px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.icon-circle svg {
    width: 22px;
    height: 22px;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text h3 {
    font-size: var(--font-size-feature-title);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.feature-text p {
    font-size: var(--font-size-feature-text);
    color: #475569;
    font-weight: 400;
}

.bottom-cta {
    position: absolute;
    bottom: -20px;
    z-index: 10;
}

.automate-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius-btn);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-button);
    transition: transform 0.2s, background 0.2s;
}

.automate-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

.call-status {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.3s ease;
    background: rgba(255,255,255,0.9);
    z-index: 20;
}

.call-status.hidden {
    opacity: 0;
    pointer-events: none;
}

.call-status.success { color: #059669; }
.call-status.error { color: #dc2626;  }
.call-status.loading { color: #2563eb; }

.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: #1e293b;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.4s ease;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}
.toast.error { background: #ef4444; }

@media (max-width: 768px) {
    .features-wrapper {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    .search-pill {
        width: 90%;
        padding-right: 6px;
    }
    .bottom-cta {
        width: 90vw;
    }
    .automate-btn {
        width: 100%;
    }
}
