/* :root {
    --primary: #2a6e3f;
    --secondary: #3498db;
    --tertiary: #f9b234;
    --dark: #1a3c23;
    --light: #f5f9f6;
    --accent: #8e44ad;
    --gray: #6c757d;
    --error: #dc3545;
    --success: #28a745;
    --transition: all 0.3s ease;
} */

/*Lead Capture Section */
.lead-capture {
    padding: 5rem 1rem;
    background: linear-gradient(135deg,
            var(--dark) 0%,
            var(--primary) 100%);
    color: white;
    text-align: center;
    position: relative;
}

.lead-capture .section-title h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.lead-capture .section-title p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.lead-box {
    background: white;
    border-radius: 10px;
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.lead-box h3 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--tertiary);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 110, 63, 0.2);
}

.form-control.error {
    border-color: var(--error);
}

.confirmation {
    background: var(--success);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

.error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.service-select {
    margin: 1.5rem 0;
}

.service-select h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.2rem;
}

.service-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.service-option {
    background: var(--light);
    color: #112912;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    min-width: 150px;
    border: 2px solid transparent;
    flex: 1;
    position: relative;
    overflow: hidden;
    outline: none;
}

.service-option::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 110, 63, 0);
    transition: all 0.3s;
    z-index: 0;
}

/* Remove focus styles that might create double outline */
.service-option:focus {
    outline: none;
}

.service-option:hover,
.service-option.active {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-option:hover::after,
.service-option.active::after {
    background: rgba(42, 110, 63, 0.05);
}

.service-option.flagship.active {
    border-color: var(--tertiary);
}

.service-option.flagship.active::after {
    background: rgba(249, 178, 52, 0.05);
}

.service-option i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.service-option.flagship i {
    color: var(--tertiary);
}

.service-option div {
    font-weight: 600;
    color: var(--dark);
    position: relative;
    z-index: 1;
}

/* Selected Services Display */
.selected-services {
    background-color: var(--light);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0y;
    text-align: left;
    border: 1px dashed var(--primary);
    transition: all 0.3s;
    min-height: 62px;
}

.selected-services h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.selected-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.selected-service-item {
    background-color: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selected-service-item i {
    cursor: pointer;
    transition: transform 0.2s;
}

.selected-service-item i:hover {
    transform: scale(1.2);
}

/* Adjust form button to match LandSecure style */
.btn-form {
    padding: 0.9rem 2.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    font-size: 1.1rem;
    min-width: 220px;
    width: 100%;
    background: var(--tertiary);
    color: var(--dark);
    border: 2px solid var(--tertiary);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-form::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    transition: all 0.3s;
}

.btn-form:hover {
    background: transparent;
    color: var(--tertiary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-form:hover::after {
    background: rgba(255, 255, 255, 0.1);
}

.btn-form:disabled {
    background: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-form:disabled:hover {
    color: var(--dark);
}

/* Responsive */
@media (max-width: 768px) {

    .service-option {
        min-width: 120px;
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .lead-box {
        padding: 2rem 1.5rem;
    }
}

/* Confirmation Message */
.confirmation {
    background-color: #d4edda;
    color: var(--success);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    display: none;
    animation: fadeIn 0.5s ease;
    border-left: 4px solid var(--success);
}

.confirmation i {
    margin-right: 10px;
}

/* Error Message */
.error-message-container {
    background-color: #f8d7da;
    color: var(--error);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    display: none;
    border-left: 4px solid var(--error);
}

/* Loading Spinner */
.spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.honeypot {
    position: absolute;
    left: -9999px;
}

/* Form labels */
.required::after {
    content: " *";
    color: var(--error);
}

/* -----------------------------
   Phone widget styles (added)
   - keeps Code+Name small
   - shows ellipsis when name too long
   - gradient fade + chevron to indicate more content
   - stacks vertically under 500px
   ----------------------------- */

.phone-input {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e6e9eb;
    position: relative;
}

/* wrapper around the select to add overlay and chevron */
.select-wrap {
    position: relative;
    display: inline-block;
    width: 36%;
    max-width: 220px;
    min-width: 140px;
    border-radius: 6px;
    overflow: hidden;
    /* allow gradient fade overlay */
    background: transparent;
    flex: 0 0 auto;
}

/* the visible select: show selected text with ellipsis */
.select-wrap select {
    width: 100%;
    box-sizing: border-box;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    padding: 8px 36px 8px 8px;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;    
    cursor: pointer;
}

/* fallback for long country names in some browsers: ensure selected option ellipsis */
.select-wrap select option {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* phone input field */
.phone-input input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    padding: 8px;
    flex: 1 1 auto;
    min-width: 0;
    /* important for flex shrinking on small widths */
}

/* gradient fade on right to indicate overflow / more content */
.select-wrap::before {
    content: "";
    position: absolute;
    right: 36px;
    /* leave space for caret */
    top: 0;
    bottom: 0;
    width: 36px;
    pointer-events: none;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 1));
    opacity: 0.85;
    transition: opacity 0.18s ease;
}

/* chevron indicator showing user can open the select; looks clickable */
.select-wrap::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #666;
    pointer-events: none;
    opacity: 0.9;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

/* reduce fade and rotate chevron slightly when active/focus */
.select-wrap:focus-within::before {
    opacity: 0.25;
}

.select-wrap:focus-within::after {
    transform: translateY(-50%) rotate(180deg);
    opacity: 1;
}

/* make select and input combine nicely on large screens */
.phone-input::before {
    content: "";
    display: none;
}

/* messages area styling already exists — keep it consistent */
.messages {
    margin-top: 12px;
    font-size: 14px;
    color: var(--gray);
}

/* small-screen responsive: stack vertically (under 500px) */
@media (max-width: 500px) {
    .phone-input {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
    }

    .select-wrap,
    .phone-input select,
    .phone-input input {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .phone-input select {
        font-size: 15px;
    }

    .phone-input input {
        font-size: 16px;
    }

    .select-wrap::before {
        right: 44px;
        width: 44px;
    }

    .select-wrap::after {
        right: 14px;
    }
}

.messages .err {
    color: var(--error);
    font-weight: 300;
}

.messages .ok {
    color: var(--success);
    font-weight: 300;
}

/* make keyboard focus visible for accessibility */
.select-wrap:focus-within {
    box-shadow: 0 0 0 3px rgba(26, 60, 35, 0.15);
    border-radius: 6px;
}

/* ensure the select is visually consistent when size is programmatically changed (script opens list) */
.select-wrap select[size] {
    background: white;
    box-shadow: 0 6px 18px rgba(26, 60, 35, 0.08);
    max-height: 320px;
    overflow: auto;
}

/* small nicety: when dropdown is open remove the gradient fade to clearly show options */
.select-wrap select[aria-expanded="true"]~.select-wrap::before {
    opacity: 0.15;
}

/* Default hint style — grey for neutral prompts */
#hint {
    color: var(--gray);    
}

/* Red for  error messages */
#hint.err {
    color: var(--error);    
}

/* Green for success/valid number */
#hint.ok {
    color: var(--success);    
} 