/* CloudBox Branding - Black and White Theme */
:root {
    --primary-black: #000000;
    --secondary-gray: #333333;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --success-green: #28a745;
    --cloudbox-green: #0bda51;
    --warning-orange: #fd7e14;
    --danger-red: #dc3545;
    --border-light: #e9ecef;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--secondary-gray);
    background: var(--white);
    margin: 0;
    padding: 0;
}

/* Layout */
.min-vh-100 {
    min-height: 100vh;
}

.form-section {
    background: var(--white);
    border-right: 1px solid var(--border-light);
}

.results-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

/* Typography */
.brand-logo {
    max-width: 200px;
    height: auto;
    filter: brightness(0); /* Makes the logo black if it's not already */
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-gray);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.results-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

/* Form Styling */
.form-container {
    max-width: 100%;
    padding: 2rem;
}

.form-label {
    font-weight: 600;
    color: var(--secondary-gray);
    margin-bottom: 0.5rem;
}

.required {
    color: var(--danger-red);
}

.form-control, .form-select {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-black);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
    background: var(--white);
}

.form-control::placeholder {
    color: #adb5bd;
}

/* Buttons */
.calculate-btn {
    background: var(--primary-black);
    border: 2px solid var(--primary-black);
    border-radius: 8px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calculate-btn:hover {
    background: var(--secondary-gray);
    border-color: var(--secondary-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-button {
    background: var(--success-green);
    border: 2px solid var(--success-green);
    border-radius: 8px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-outline-dark {
    border: 2px solid var(--secondary-gray);
    color: var(--secondary-gray);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: var(--secondary-gray);
    border-color: var(--secondary-gray);
    color: var(--white);
}

/* Results Section */
.results-container {
    padding: 2rem;
    max-width: 100%;
}

.results-container-centered {
    padding: 2rem;
    max-width: 100%;
    text-align: center;
}

.results-icon {
    font-size: 3rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.cost-breakdown {
    margin: 2rem 0;
}

.cost-item {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.cost-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cost-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-gray);
    margin-bottom: 1rem;
}

.cost-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.cost-subtext {
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0;
    margin-top: 0.5rem;
}

.savings .cost-amount {
    color: var(--success-green);
}

.savings-percentage {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 0;
}

.pricing-tier-info {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.pricing-tier-info small {
    font-weight: 500;
}

/* Cost Breakdown Details */
.cost-breakdown-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    font-weight: 500;
    color: var(--secondary-gray);
}

.breakdown-amount {
    font-weight: 600;
    color: var(--primary-black);
}



.cta-section {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cta-text {
    font-size: 1rem;
    color: var(--secondary-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Placeholder Content */
.placeholder-content {
    padding: 2rem;
    text-align: center;
}

.placeholder-icon {
    font-size: 4rem;
    color: var(--primary-black);
    margin-bottom: 1.5rem;
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-item i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.text-cloudbox-green {
    color: var(--cloudbox-green) !important;
}

/* Video and Calendar Embeds */
.video-section {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.video-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Calendar Embed - Desktop View (even wider) */
.calendar-embed-desktop {
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 1.5rem 0 3rem 0; /* More bottom margin to separate from buttons */
    width: 180%; /* Much wider */
    margin-left: -40%; /* Center the wider embed */
    height: 750px;
}

.calendar-embed-desktop iframe {
    border-radius: 8px;
    height: 100%;
}

/* Mobile Demo Button - Hidden on Desktop */
.mobile-demo-button {
    display: none;
    text-align: center;
    margin: 1.5rem 0;
}

.mobile-demo-button .btn {
    background: var(--primary-black);
    border-color: var(--primary-black);
    color: var(--white);
}

.mobile-demo-button .btn:hover {
    background: var(--secondary-gray);
    border-color: var(--secondary-gray);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-red);
    border-left: 4px solid var(--danger-red);
}

.alert-warning {
    background: rgba(253, 126, 20, 0.1);
    color: #856404;
    border-left: 4px solid var(--warning-orange);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .form-section {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    
    .brand-logo {
        max-width: 150px;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .cost-amount {
        font-size: 2rem;
    }
    
    .form-container,
    .results-container,
    .results-container-centered,
    .placeholder-content {
        padding: 1.5rem;
    }
    
    .video-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    /* Hide calendar embed on mobile, show demo button */
    .calendar-embed-desktop {
        display: none;
    }
    
    .mobile-demo-button {
        display: block !important;
    }
    
    /* Center feature list items on mobile */
    .feature-item {
        justify-content: flex-start;
        text-align: left;
    }
}

/* Desktop View - Show calendar embed, hide demo button */
@media (min-width: 992px) {
    .calendar-embed-desktop {
        display: block;
    }
    
    .mobile-demo-button {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .brand-title {
        font-size: 1.75rem;
    }
    
    .cost-amount {
        font-size: 1.75rem;
    }
    
    .feature-item {
        justify-content: flex-start;
    }
    
    .form-container,
    .results-container,
    .placeholder-content {
        padding: 1rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .calculate-btn {
    background: var(--secondary-gray);
    cursor: not-allowed;
}

/* Focus States for Accessibility */
.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: 2px solid var(--primary-black);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .form-section {
        display: none;
    }
    
    .results-section {
        background: var(--white);
    }
    
    .cta-button {
        display: none;
    }
}
