/* ===================================================
   DEMO PAGE - REQUEST A DEMO STYLES
   =================================================== */

/* --- Hero Section --- */
.demo-hero-redesign {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #d7942e 0%, #e8b923 40%, #f0c94d 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.demo-hero-redesign .hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    z-index: -1;
}

.demo-hero-redesign .hero-shape-1 {
    width: 400px;
    height: 400px;
    background: #fff;
    top: -100px;
    right: -80px;
    animation: float 8s ease-in-out infinite;
}

.demo-hero-redesign .hero-shape-2 {
    width: 250px;
    height: 250px;
    background: #fff;
    bottom: -60px;
    left: -40px;
    animation: float 6s ease-in-out infinite reverse;
}

.demo-hero-redesign .hero-shape-3 {
    width: 150px;
    height: 150px;
    background: #fff;
    top: 40%;
    left: 20%;
    animation: float 10s ease-in-out infinite;
}

.demo-hero-redesign .hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.demo-hero-redesign .hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- Demo Main Section --- */
.demo-main-section {
    padding: 60px 0 80px;
    background: var(--bg-color, #f8f9fa);
}

/* Demo Form Wrapper */
.demo-form-wrapper {
    background: var(--policy-card-bg, #fff);
    border: 1px solid var(--card-border, #e0e0e0);
    border-radius: 20px;
    padding: 44px 40px;
    height: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.demo-form-header {
    margin-bottom: 32px;
}

.demo-form-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color, #1a1a1a);
    margin-bottom: 8px;
}

.demo-form-subtitle {
    font-size: 1rem;
    color: var(--text-secondary, #666);
    line-height: 1.6;
}

/* Form expand to fill space */
.demo-form-redesign {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.demo-form-redesign .row.g-3 {
    flex: 1;
}

/* Form Fields */
.demo-form-redesign .form-floating-custom {
    margin-bottom: 0;
}

.demo-form-redesign .form-floating-custom label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color, #1a1a1a);
    margin-bottom: 8px;
    display: block;
}

.demo-form-redesign .form-floating-custom label i {
    color: #d7942e;
    margin-right: 4px;
    font-size: 0.8rem;
}

.demo-form-redesign .form-control,
.demo-form-redesign .form-select {
    background: var(--form-control-bg, #fff);
    color: var(--form-control-text, #1a1a1a);
    border: 1.5px solid var(--card-border, #e0e0e0);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.demo-form-redesign .form-control:focus,
.demo-form-redesign .form-select:focus {
    border-color: #d7942e;
    box-shadow: 0 0 0 3px rgba(215, 148, 46, 0.12);
    outline: none;
}

.demo-form-redesign .form-control::placeholder {
    color: #aaa;
    font-weight: 400;
}

.demo-form-redesign textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.btn-submit-demo {
    background: linear-gradient(135deg, #d7942e 0%, #e8b923 100%);
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    width: 100%;
    letter-spacing: 0.3px;
}

.btn-submit-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(215, 148, 46, 0.35);
    background: linear-gradient(135deg, #c4841f 0%, #d7a620 100%);
    color: #fff;
}

.btn-submit-demo:active {
    transform: translateY(0);
}

.btn-submit-demo:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* --- Demo Sidebar --- */
.demo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

/* Make the left column also full height */
.demo-main-section .col-lg-7,
.demo-main-section .col-lg-5 {
    display: flex;
    flex-direction: column;
}

.demo-main-section .col-lg-7 .demo-form-wrapper,
.demo-main-section .col-lg-5 .demo-sidebar {
    flex: 1;
}

.demo-sidebar-card {
    background: var(--policy-card-bg, #fff);
    border: 1px solid var(--card-border, #e0e0e0);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.demo-sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d7942e, #e8b923);
    border-radius: 20px 20px 0 0;
}

.demo-sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(215, 148, 46, 0.12);
}

/* Sidebar Card Header - Icon and Heading Inline */
.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.sidebar-card-header h4 {
    margin-bottom: 0;
}

.demo-sidebar-card .sidebar-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(215, 148, 46, 0.12), rgba(232, 185, 35, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.demo-sidebar-card:hover .sidebar-icon {
    background: linear-gradient(135deg, #d7942e, #e8b923);
    transform: scale(1.08);
}

.demo-sidebar-card .sidebar-icon i {
    font-size: 1.4rem;
    color: #d7942e;
    transition: color 0.3s ease;
}

.demo-sidebar-card:hover .sidebar-icon i {
    color: #fff;
}

.demo-sidebar-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color, #1a1a1a);
    margin-bottom: 10px;
}

.demo-sidebar-card p {
    font-size: 0.95rem;
    color: var(--text-secondary, #666);
    line-height: 1.7;
    margin-bottom: 0;
}

/* What You'll See List */
.demo-features-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.demo-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-secondary, #666);
    border-bottom: 1px solid var(--card-border, #e0e0e0);
}

.demo-features-list li:last-child {
    border-bottom: none;
}

.demo-features-list li i {
    color: #d7942e;
    font-size: 0.85rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Office Address Card */
.demo-office-address {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 14px;
}

.demo-office-address i {
    color: #d7942e;
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.demo-office-address p {
    font-size: 0.9rem;
    color: var(--text-secondary, #666);
    line-height: 1.7;
    margin: 0;
}

/* Map Card */
.demo-map-wrapper {
    border-radius: 14px;
    overflow: hidden;
    margin-top: 4px;
}

.demo-map-wrapper iframe {
    border-radius: 14px;
    width: 100%;
    display: block;
}

/* Success Message */
.demo-success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.demo-success-message.show {
    display: block;
}

.demo-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.12), rgba(40, 167, 69, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.demo-success-icon i {
    font-size: 2rem;
    color: #28a745;
}

.demo-success-message h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color, #1a1a1a);
    margin-bottom: 10px;
}

.demo-success-message p {
    font-size: 1rem;
    color: var(--text-secondary, #666);
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

/* ===================================================
   DARK MODE OVERRIDES
   =================================================== */
[data-theme="dark"] .demo-hero-redesign {
    background: linear-gradient(135deg, #b3771e 0%, #d7942e 50%, #c4841f 100%);
}

[data-theme="dark"] .demo-main-section {
    background: var(--bg-color);
}

[data-theme="dark"] .demo-form-wrapper {
    background: var(--policy-card-bg);
    border-color: var(--card-border);
}

[data-theme="dark"] .demo-form-title {
    color: var(--text-color);
}

[data-theme="dark"] .demo-form-subtitle {
    color: var(--text-secondary);
}

[data-theme="dark"] .demo-form-redesign .form-floating-custom label {
    color: var(--text-color);
}

[data-theme="dark"] .demo-form-redesign .form-floating-custom label i {
    color: #e8b923;
}

[data-theme="dark"] .demo-form-redesign .form-control,
[data-theme="dark"] .demo-form-redesign .form-select {
    background: var(--form-control-bg);
    color: var(--form-control-text);
    border-color: var(--card-border);
}

[data-theme="dark"] .demo-form-redesign .form-control:focus,
[data-theme="dark"] .demo-form-redesign .form-select:focus {
    border-color: #e8b923;
    box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.15);
}

[data-theme="dark"] .demo-sidebar-card {
    background: var(--policy-card-bg);
    border-color: var(--card-border);
}

[data-theme="dark"] .demo-sidebar-card:hover {
    box-shadow: 0 12px 32px rgba(232, 185, 35, 0.12);
}

[data-theme="dark"] .demo-sidebar-card h4 {
    color: var(--text-color);
}

[data-theme="dark"] .demo-sidebar-card p {
    color: var(--text-secondary);
}

[data-theme="dark"] .demo-sidebar-card .sidebar-icon {
    background: linear-gradient(135deg, rgba(232, 185, 35, 0.15), rgba(215, 148, 46, 0.15));
}

[data-theme="dark"] .demo-sidebar-card .sidebar-icon i {
    color: #e8b923;
}

[data-theme="dark"] .demo-sidebar-card:hover .sidebar-icon {
    background: linear-gradient(135deg, #b3771e, #d7942e);
}

[data-theme="dark"] .demo-features-list li {
    color: var(--text-secondary);
    border-bottom-color: var(--card-border);
}

[data-theme="dark"] .demo-features-list li i {
    color: #e8b923;
}

[data-theme="dark"] .demo-office-address i {
    color: #e8b923;
}

[data-theme="dark"] .demo-office-address p {
    color: var(--text-secondary);
}

[data-theme="dark"] .demo-success-message h3 {
    color: var(--text-color);
}

[data-theme="dark"] .demo-success-message p {
    color: var(--text-secondary);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 991px) {
    .demo-hero-redesign {
        padding: 120px 0 80px;
    }

    .demo-hero-redesign .hero-title {
        font-size: 2.5rem;
    }

    .demo-form-wrapper {
        padding: 32px 28px;
    }

    .demo-main-section {
        padding: 40px 0 60px;
    }
}

@media (max-width: 767px) {
    .demo-hero-redesign {
        padding: 100px 0 60px;
    }

    .demo-hero-redesign .hero-title {
        font-size: 2rem;
    }

    .demo-hero-redesign .hero-subtitle {
        font-size: 1rem;
    }

    .demo-form-wrapper {
        padding: 28px 20px;
    }

    .demo-form-title {
        font-size: 1.6rem;
    }

    .demo-main-section {
        padding: 30px 0 50px;
    }
}

@media (max-width: 576px) {
    .demo-hero-redesign {
        padding: 90px 0 50px;
    }

    .demo-hero-redesign .hero-title {
        font-size: 1.75rem;
    }

    .demo-hero-redesign .hero-subtitle {
        font-size: 0.9rem;
    }

    .demo-form-wrapper {
        padding: 24px 16px;
        border-radius: 14px;
    }

    .btn-submit-demo {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .demo-sidebar-card {
        padding: 24px 20px;
    }
}