:root {
    --font-primary: 'Manrope', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    --color-primary-dark: #0D2C4F;
    --color-primary: #1A5A9A;
    --color-primary-light: #5C9DDE;
    --color-primary-bg: #F0F6FC;

    --color-accent-gold: #D4AF37;
    --color-accent-gold-light: #E0C67F;

    --color-text-headings: var(--color-primary-dark);
    --color-text-body: #343A40;
    --color-text-muted: #6C757D;

    --color-bg-page: #F8F9FA;
    --color-bg-container: #FFFFFF;

    --color-border-light: #E9ECEF;
    --color-border-medium: #CED4DA;
    --color-input-focus-border: var(--color-primary);
    --color-input-focus-glow: rgba(26, 90, 154, 0.2);

    --color-success: #198754;
    --color-error: #DC3545;
    --color-info-bg: #E0F2FE;
    --color-info-text: #0C546C;

    --border-radius-xl: 12px;
    --border-radius-lg: 10px;
    --border-radius-md: 6px;
    --border-radius-pill: 50px;

    --shadow-subtle: 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.07);
    --shadow-interactive: 0 3px 8px rgba(0, 0, 0, 0.08);
    --shadow-large: 0 10px 30px rgba(0, 0, 0, 0.08);


    --transition-fast: all 0.2s ease-out;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-secondary);
    background-color: var(--color-bg-page);
    color: var(--color-text-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    min-height: 100vh;
    padding-bottom: 100px; /* Add padding to prevent content from being hidden by fixed banner */
}

.form-container-wizard {
    background-color: var(--color-bg-container);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-large);
    max-width: 800px;
    width: 100%;
    margin: 15px 0;
    padding: 30px 35px;
    display: flex;
    flex-direction: column;
}

.wizard-header {
    text-align: center;
    margin-bottom: 25px;
    flex-shrink: 0;
    display: none;
    opacity: 0;
    transform: translateY(-15px);
}

.wizard-header.visible {
    display: block;
    animation: headerFadeInSoft 0.5s ease-out forwards;
}

@keyframes headerFadeInSoft {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-header h1 {
    font-family: var(--font-primary);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--color-text-headings);
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}
.wizard-header p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.45;
}

.progress-bar-container { display: none; }

#serviceInquiryWizardForm { width: 100%; display: flex; flex-direction: column; }

.wizard-step { display: none; width: 100%; }
.wizard-step.active-step {
    display: block;
    animation: sectionFadeInUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

#contactDetailsSection.active-step {
    margin-top: 35px;
}

@keyframes sectionFadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-content-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-headings);
    margin-bottom: 10px;
    text-align: center;
}
.step-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.service-selection-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}
.service-card-option {
    background-color: var(--color-bg-container);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-lg);
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 130px;
    text-align: center;
}

.service-card-option:hover {
    border-color: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
.service-card-option.selected {
    border-color: var(--color-primary);
    background-color: var(--color-primary-bg);
    box-shadow: 0 0 0 2px var(--color-primary), var(--shadow-card);
}

.service-icon-placeholder {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    transition: var(--transition-fast);
}
.service-icon-placeholder svg {
    width: 28px;
    height: 28px;
    display: block;
}
.service-card-option.selected .service-icon-placeholder {
    transform: scale(1.05);
}
.service-name-option {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-body);
    line-height: 1.2;
}
.service-card-option.selected .service-name-option {
    color: var(--color-primary);
}

#allDetailsContainer .dynamic-content-section {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border-light);
    animation: cardEntry 0.4s ease-out forwards;
}
@keyframes cardEntry {
    from { opacity: 0; transform: scale(0.97) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
#allDetailsContainer .dynamic-content-section:last-child { margin-bottom: 0; }

.dynamic-section-title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-headings);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
}
.dynamic-section-title::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235C9DDE'%3E%3Cpath d='M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 7.58172 4 12 4ZM11 7H13V11H17V13H13V17H11V13H7V11H11V7Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.form-grid-responsive { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
@media (min-width: 768px) { .form-grid-responsive { grid-template-columns: 1fr 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group.full-span { grid-column: 1 / -1; }
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-headings);
    margin-bottom: 8px;
}
.required-asterisk { color: var(--color-error); margin-left: 2px; font-weight: normal; }
.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; }

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: var(--font-secondary);
    color: var(--color-text-body);
    background-color: #fff;
    border: 1px solid var(--color-border-medium);
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
}
.form-control::placeholder { color: #99AAB5; }
.form-control:focus {
    border-color: var(--color-input-focus-border);
    outline: 0;
    box-shadow: 0 0 0 0.15rem var(--color-input-focus-glow);
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 14px 10px; padding-right: 2.5rem;
}
textarea.form-control { min-height: 110px; resize: vertical; }

.conditional-target {
    display: none;
    margin-top: 10px;
    padding: 12px;
    background-color: var(--color-primary-bg);
    border-radius: var(--border-radius-md);
    border: 1px dashed var(--color-primary-light);
    animation: fadeInConditional 0.3s ease-out;
}
@keyframes fadeInConditional { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.checkbox-label { display: flex; align-items: center; font-size: 0.9rem; color: var(--color-text-muted); cursor: pointer; margin-top: 8px; }
.checkbox-label input[type="checkbox"] { width: 1.1em; height: 1.1em; margin-right: 0.5em; accent-color: var(--color-primary); cursor: pointer; border-radius: 3px; border: 1px solid var(--color-border-medium); }
.checkbox-label a { color: var(--color-primary); text-decoration: none; font-weight: 500; }
.checkbox-label a:hover { text-decoration: underline; }

.wizard-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--color-border-light);
}
.wizard-navigation.final-submit-nav { justify-content: space-between; }
.btn {
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    letter-spacing: 0.25px;
}
.btn .arrow { margin-left: 8px; margin-right: -4px; font-size: 1.2em; }
.btn-prev .arrow { margin-right: 8px; margin-left: -4px; }

.btn-primary {
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-light));
    color: #fff;
    box-shadow: var(--shadow-interactive);
}
.btn-primary:hover {
    background: linear-gradient(to right, var(--color-primary-light), var(--color-primary));
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 5px 10px rgba(26, 90, 154, 0.25);
}
.btn-primary:focus { box-shadow: 0 0 0 0.15rem var(--color-input-focus-glow); }
.btn-primary:disabled {
    background: var(--color-text-muted); color: #fff; cursor: not-allowed;
    box-shadow: none; transform: none; opacity: 0.7;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-border-medium);
}
.btn-secondary:hover {
    background-color: var(--color-primary-bg);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--color-accent-gold);
    color: #fff;
    box-shadow: var(--shadow-interactive);
}
.btn-accent:hover {
    background: var(--color-accent-gold-light);
    color: var(--color-primary-dark);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 5px 10px rgba(212, 175, 55, 0.25);
}
.btn-accent:focus { box-shadow: 0 0 0 0.15rem rgba(212, 175, 55, 0.25); }

.form-message-area {
    margin-top: 25px;
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    text-align: center;
    font-weight: 500;
    display: none;
    font-size: 0.95rem;
    line-height: 1.5;
}
.form-message-area.success { background-color: #DFF2BF; color: #4F8A10; border: 1px solid #A8D589; display: block; }
.form-message-area.error { background-color: #FFD2D2; color: #D8000C; border: 1px solid #FFBABA; display: block; }
.form-message-area.info { background-color: var(--color-info-bg); color: var(--color-info-text); border: 1px solid var(--color-primary-light); display: block; }

.form-message-area.success p {
    margin-bottom: 10px;
}
.form-message-area.success p:last-child {
    margin-bottom: 0;
}
.form-message-area.success .btn {
    margin-top: 10px;
}

/* Cookie Consent Banner Styles */
#cookieConsentBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa; /* Light grey background */
    color: #333;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000; /* Ensure it's on top */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    opacity: 0; /* Start hidden for fade-in */
    transform: translateY(100%); /* Start off-screen for slide-in */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

#cookieConsentBanner.visible-banner { /* Class to control visibility with transition */
    opacity: 1;
    transform: translateY(0);
}

#cookieConsentBanner p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

#cookieConsentBanner a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}

#cookieConsentBanner a:hover {
    text-decoration: none;
}

#cookieConsentBanner button {
    background-color: #e60023; /* Red color */
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 20px; /* Pill shape */
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

#cookieConsentBanner button:hover {
    background-color: #c3001c; /* Darker red on hover */
}

/* Utility class to hide the banner - used if JS needs to force hide without transition */
.hidden {
    display: none !important;
}


@media (max-width: 992px) {
    .form-container-wizard { padding: 25px 30px; }
    .wizard-header.visible h1 { font-size: 1.8rem; }
    .wizard-header.visible p { font-size: 0.9rem; }
}
@media (min-width: 768px) { /* This applies to banner too */
    #cookieConsentBanner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    #cookieConsentBanner p {
        margin: 0 20px 0 0;
        flex-grow: 1;
    }
    #cookieConsentBanner button {
        flex-shrink: 0;
    }
}
@media (max-width: 768px) {
    .form-container-wizard { padding: 20px 15px; margin-top: 10px; }
    .wizard-header.visible h1 { font-size: 1.65rem; }
    .wizard-header.visible p { font-size: 0.85rem; }
    .step-content-title { font-size: 1.35rem; }
    .step-subtitle { font-size: 0.85rem; }
    .dynamic-section-title { font-size: 1.3rem; }
    #allDetailsContainer .dynamic-content-section { padding: 20px; }
    .service-selection-options { gap: 10px; }
    .service-card-option { padding: 12px 15px; min-width: 120px; }
    .service-icon-placeholder svg { width: 24px; height: 24px; }
    .service-name-option { font-size: 0.8rem; }
    .wizard-navigation.final-submit-nav { flex-direction: column-reverse; gap: 12px; }
    .wizard-navigation.final-submit-nav .btn { width: 100%; }
}
@media (max-width: 576px) {
    body { padding: 15px 10px; padding-bottom: 120px; /* More padding for smaller screens due to banner */ }
    .form-container-wizard { padding: 15px 10px; }
    .wizard-header.visible h1 { font-size: 1.5rem; }
    .wizard-header.visible p { font-size: 0.8rem; }
    .step-content-title { font-size: 1.25rem; }
    .step-subtitle { font-size: 0.8rem; }
    .dynamic-section-title { font-size: 1.2rem; }
    #allDetailsContainer .dynamic-content-section { padding: 15px; }
    .btn { padding: 10px 20px; font-size: 0.95rem; }
    .form-group label { font-size: 0.85rem; }
    .form-control { font-size: 0.9rem; padding: 10px 14px; }

    #cookieConsentBanner p { font-size: 0.85rem; }
    #cookieConsentBanner button { font-size: 0.9rem; padding: 8px 20px; }
}