/* BetonDirect - Public Site Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 80px 0;
    margin-top: -1px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section {
        padding: 60px 0;
    }
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card {
    text-align: center;
    padding: 2rem 1rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* How It Works */
.steps-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.step-card {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Benefits */
.benefits-section {
    padding: 80px 0;
}

.benefit-item {
    padding: 1.5rem;
    border-left: 4px solid #0d6efd;
    margin-bottom: 1.5rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.benefit-item i {
    font-size: 2rem;
    color: #0d6efd;
    margin-right: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: white;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Calculator */
.calculator-card {
    max-width: 800px;
    margin: 0 auto;
}

.calculator-type-btn {
    padding: 2rem;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calculator-type-btn:hover {
    border-color: #0d6efd;
    background: #f8f9fa;
}

.calculator-type-btn.active {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.calculator-result {
    background: #e7f1ff;
    border-left: 4px solid #0d6efd;
    padding: 2rem;
    border-radius: 8px;
}

.calculator-result .result-value {
    font-size: 3rem;
    font-weight: 700;
    color: #0d6efd;
}

/* FAQ */
.faq-section .accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
}

/* Auth Forms */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
    background: #f8f9fa;
}

.auth-card {
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.auth-card .card-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.auth-card .card-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.auth-card .card-body {
    padding: 2rem;
}

.password-strength {
    margin-top: 0.5rem;
}

.password-strength-bar {
    height: 5px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.password-strength-fill.password-strength-weak {
    width: 33%;
    background: #dc3545;
}

.password-strength-fill.password-strength-medium {
    width: 66%;
    background: #ffc107;
}

.password-strength-fill.password-strength-strong {
    width: 100%;
    background: #198754;
}

.password-strength-text {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.account-type-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.account-type-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.account-type-btn:hover {
    border-color: #0d6efd;
}

.account-type-btn.active {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.account-type-btn i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    color: #0d6efd;
}

.company-fields {
    border-left: 4px solid #0d6efd;
    padding-left: 1.5rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Form validation states */
.form-control.is-valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-check-input.is-invalid {
    border-color: #dc3545;
}

.valid-feedback {
    display: none;
    color: #198754;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.was-validated .form-control:valid ~ .valid-feedback,
.form-control.is-valid ~ .valid-feedback {
    display: block;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.was-validated .form-check-input:invalid ~ .invalid-feedback,
.form-check-input.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Contact Form */
.contact-info-card {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
}

.contact-info-card h5 {
    margin-bottom: 1.5rem;
}

.contact-info-card .info-item {
    display: flex;
    align-items: start;
    margin-bottom: 1.5rem;
}

.contact-info-card .info-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

/* Toast styling */
.toast {
    min-width: 300px;
}

/* Loading button state */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* Responsive utilities */
@media (max-width: 768px) {
    .features-section,
    .steps-section,
    .benefits-section,
    .cta-section {
        padding: 60px 0;
    }

    .account-type-selector {
        flex-direction: column;
    }
}
