:root {
    /* Colors */
    --color-primary: #294b6a;
    --color-text-muted: #6b7280;
    --color-background-light: #f3f4f6;
    --color-border-gray: #d1d5db;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;

    /* Radius */
    --radius-md: 0.375rem;
}

/* 
  Custom styles for the declarative landing page form components.
  This file contains all styles necessary to render the form elements
  used in _landing_macros.html, decoupled from the main landing.css.
*/

/* Form Group & Label */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-400);
}

/* Hero Input (Company Name) */
.input-wrapper {
    position: relative;
}

.hero-input {
    width: 100%;
    font-size: 1.25rem;
    font-weight: 700;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--slate-200);
    padding: 0.5rem 0;
    padding-right: 4rem;
    color: var(--slate-900);
    border-radius: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

@media (min-width: 640px) {
    .hero-input {
        font-size: 1.5rem; /* 2xl */
    }
}

.hero-input:focus {
    border-color: var(--brand-500);
    outline: none;
    box-shadow: 0 1px 0 0 var(--brand-500);
}

.hero-input::placeholder {
    color: var(--slate-300);
}

.input-suffix {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-300);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--slate-50);
    pointer-events: none;
    transition: all 0.2s;
}

@media (min-width: 640px) {
    .input-suffix {
        font-size: 0.875rem;
    }
}

/* Activity Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .activity-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
}

.radio-label {
    cursor: pointer;
    position: relative;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.radio-card {
    height: 100%;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--slate-200);
    background-color: var(--white);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.radio-card:hover {
    background-color: var(--slate-50);
}

.radio-card i {
    width: 1.25rem;
    height: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--slate-400);
}

.radio-card span {
    font-size: 0.75rem;
    font-weight: 700;
}

.radio-label input:checked + .radio-card {
    border-color: var(--brand-500);
    background-color: var(--brand-50);
    color: var(--brand-700);
}

.radio-label input:checked + .radio-card i {
    color: var(--brand-500);
}

/* Other Input */
.other-input {
    width: 100%;
    font-size: 0.875rem;
    background-color: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    transition: all 0.2s;
}

.other-input:focus {
    border-color: var(--brand-500);
    outline: none;
}

/* Partnership Grid */
.partnership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.partnership-card {
    height: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--slate-200);
    background-color: var(--white);
    transition: all 0.2s;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.partnership-card:hover {
    background-color: var(--slate-50);
}

.icon-circle {
    background-color: var(--slate-100);
    padding: 0.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle i {
    width: 1rem;
    height: 1rem;
    color: var(--slate-500);
}

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

.card-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
}

.card-subtitle {
    font-size: 0.625rem;
    color: var(--slate-400);
    line-height: 1.25;
    margin-top: 0.125rem;
}

.radio-label input:checked + .partnership-card {
    border-color: var(--brand-500);
    background-color: var(--brand-50);
    color: var(--brand-700);
}

.radio-label input:checked + .partnership-card .icon-circle i {
    color: var(--brand-500);
}

/* Advanced Structure */
.advanced-section {
    border-top: 1px dashed var(--slate-200);
    padding-top: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.structure-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.toggle-group {
    display: flex;
    background-color: var(--slate-100);
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.btn-toggle {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-toggle.active {
    background-color: var(--white);
    color: var(--brand-600);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-toggle.inactive {
    background-color: transparent;
    color: var(--slate-500);
}

.btn-toggle.inactive:hover {
    color: var(--slate-900);
}

.sal-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.standard-input {
    width: 100%;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s;
}

.standard-input:focus {
    border-color: var(--brand-500);
    outline: none;
}

/* Contact Details */
.contact-section {
    border-top: 1px solid var(--slate-100);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .contact-grid {
        gap: 1rem;
    }
}

.contact-input {
    width: 100%;
    font-size: 0.875rem;
    background-color: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s;
}

.contact-input:focus {
    border-color: var(--brand-500);
    outline: none;
}

/* Submit Button */
.btn-submit.group {
    width: 100%;
    background-color: var(--brand-600);
    color: var(--white);
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
}

.btn-submit.group:hover {
    background-color: var(--slate-900);
}

.btn-submit.group:active {
    transform: scale(0.99);
}

.btn-content-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-tag {
    color: var(--slate-400);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
}

.btn-submit.group:hover .price-tag {
    color: rgba(255, 255, 255, 0.8);
}

.btn-submit.group:hover i {
    transform: translateX(0.2s);
}

/* Step Navigation */
.step-navigation-group {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    border-top: 1px solid var(--slate-100);
    padding-top: 1.5rem;
}

.step-navigation-group.centered-actions {
    justify-content: center;
    border-top: none;
    padding-top: 1rem;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--slate-900);
    color: var(--brand-600);
}

.btn-primary.btn-large {
    font-size: 1.125rem;
    padding: 1rem 2rem;
    background-color: var(--brand-600);
    color: white;
    border-radius: 9999px; /* Pill shape for primary action */
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.2);
}

.btn-primary.btn-large:hover {
    background-color: var(--slate-900);
    transform: translateY(-2px);
}

.btn-primary:hover {
    background-color: var(--brand-600);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--slate-500);
}

.btn-secondary:hover {
    color: var(--slate-900);
    background-color: var(--slate-100);
}

/* Dynamic Partner List */
.dynamic-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.partner-item .contact-grid {
    flex-grow: 1;
}

.btn-remove {
    background-color: transparent;
    border: none;
    color: var(--slate-400);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.25rem;
    border-radius: 9999px;
}

.btn-remove:hover {
    color: var(--slate-600);
    background-color: var(--slate-100);
}

.btn-add-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    border: 2px dashed var(--color-border-gray);
    background-color: transparent;
    color: var(--color-text-muted);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-add-item:hover {
    background-color: var(--color-background-light);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-add-item i {
    width: 1rem;
    height: 1rem;
}

/* Verification/Password Step Styles */
.form-step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
}

.form-step-description {
    color: var(--slate-500);
    margin-bottom: 1.5rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--brand-600);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-top: 1rem;
    font-weight: 500;
}

.btn-link:hover {
    color: var(--brand-700);
}

.checkout-summary {
    background-color: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--slate-500);
    margin-bottom: 0.5rem;
}
.summary-value {
    font-weight: 600;
    color: var(--green-600); /* Signals value */
}
.summary-total {
    border-top: 1px dashed var(--slate-300);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.total-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--slate-900);
}
.total-sub {
    font-size: 0.625rem;
    color: var(--slate-400);
}
.total-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.025em;
}

/* Tier Selection Cards */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .tier-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tier-card {
    position: relative;
    display: block;
    cursor: pointer;
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    padding: 1.25rem;
    background-color: var(--white);
    transition: all 0.2s ease-in-out;
}

.tier-card:hover {
    border-color: var(--brand-500);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tier-card:focus-within {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px var(--brand-200);
}

.tier-card.active,
.tier-card:has(input:checked) {
    border: 2px solid var(--brand-600);
    background-color: var(--brand-50);
    padding: calc(1.25rem - 1px); /* Account for thicker border */
}


.tier-card input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

.tier-card .content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tier-card .arabic-term {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 0.75rem;
    color: var(--slate-400);
    margin-bottom: 0.5rem;
}

.tier-card strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-900);
}

.tier-card p {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin: 0;
}

.tier-card.recommended {
    border-color: var(--brand-500);
}

.badge-recommended {
    position: absolute;
    top: -0.75rem;
    right: 1rem;
    background-color: var(--brand-600);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 640px) {
    .tier-card {
        padding: 1rem;
    }

    .tier-card strong {
        font-size: 0.9rem;
    }
    
    .tier-card p {
        font-size: 0.8rem;
    }

    .badge-recommended {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
        top: -0.6rem;
    }
}

/* Property Registration Summary Colors */
.summary-row.text-assessed {
    color: #6366f1;
}

.summary-row.text-savings {
    color: #10b981;
}

/* Mad Libs Form Style - REVISED for Usability */
.mad-libs-headline {
    font-family: 'Inter', sans-serif;
    color: var(--slate-900);
    letter-spacing: -0.025em;
    padding: 1rem 0;
    
    /* Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.prefix-text, .suffix-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--slate-500);
}

.mad-libs-input {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--slate-200);
    
    /* Typography for Input */
    font-family: inherit;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--brand-600);
    
    padding: 0.5rem 0;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0; /* Remove potential browser defaults */
}

.mad-libs-input:focus {
    outline: none;
    border-bottom-color: var(--brand-500);
    box-shadow: 0 4px 12px -4px rgba(14, 165, 233, 0.1);
}

.mad-libs-input::placeholder {
    color: var(--slate-300);
    font-weight: 400;
    opacity: 0.5;
}

@media (min-width: 640px) {
    .mad-libs-headline {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .prefix-text, .suffix-text {
        font-size: 2rem;
        font-weight: 600;
        color: var(--slate-400); /* Lighter on desktop for contrast with input */
    }
    
    .mad-libs-input {
        width: auto;
        min-width: 350px; /* Specific width for desktop to look substantial */
        font-size: 3.5rem; /* Huge on desktop */
        border-bottom-width: 3px;
    }
}
