/* Custom styles for DTC Website */

/* Custom Color Palette */
:root {
    --bs-primary: #1d70b8;
    --bs-primary-rgb: 29, 112, 184;
    --bs-primary-hover: #175a94;
    --bs-primary-light: rgba(29, 112, 184, 0.1);
    --bs-primary-shadow: rgba(29, 112, 184, 0.4);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Top Info Bar */
.top-bar {
    font-size: 0.9rem;
}

.top-bar a {
    transition: color 0.2s;
}

/* Navigation */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover {
    color: var(--bs-primary) !important;
}

/* Hero Section */
.hero {
    min-height: 700px;
    display: flex;
    align-items: center;
    padding: 5rem 0;
}

.hero .badge {
    font-size: 0.9rem;
    font-weight: 500;
}

.hero .stat-box {
    padding: 1rem;
}

.hero .btn-primary {
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--bs-primary-shadow);
}

.hero h1 {
    line-height: 1.2;
}

.hero .display-3 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.card {
    transition: transform 0.2s;
}

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

footer a:hover {
    text-decoration: underline !important;
}

/* Auth Pages (Login, Register, Check Email) */
.login-section {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

@media (max-width: 767.98px) {
    .login-section {
        min-height: auto;
        padding: 1.5rem 0;
    }
}

.login-section .card {
    transition: none;
}

.login-section .card:hover {
    transform: none;
}

.login-section .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem var(--bs-primary-light);
}

.login-section .btn-primary {
    transition: all 0.3s ease;
}

.login-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--bs-primary-shadow);
}

.email-icon-wrapper {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.progress-bar {
    transition: width 0.6s ease;
}

details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

/* Multi-Step Form */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.step-indicator.active .step-number {
    background-color: var(--bs-primary);
    color: white;
    box-shadow: 0 0 0 4px var(--bs-primary-light);
}

.step-indicator.completed .step-number {
    background-color: var(--bs-success);
    color: white;
}

.step-indicator.completed .step-number::before {
    content: "\f26b";
    font-family: "bootstrap-icons";
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
}

.step-indicator.active .step-label {
    color: var(--bs-primary);
    font-weight: 600;
}

.step-line {
    height: 2px;
    background-color: #e9ecef;
    flex: 1;
    margin: 0 -8px;
    position: relative;
    top: -20px;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.step-indicator.completed + .step-line {
    background-color: var(--bs-success);
}

/* Form Steps */
.form-step {
    display: none !important;
}

.form-step.active {
    display: block !important;
    animation: fadeIn 0.3s ease-in;
}

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

/* Mobile Optimizations */
@media (max-width: 767.98px) {
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-line {
        top: -17px;
    }

    .login-section .card-body {
        padding: 1.5rem !important;
    }

    .form-control-lg,
    .form-select-lg {
        font-size: 1rem;
    }
}

/* Form Validation */
.form-control.is-invalid,
.form-select.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-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.pricing-card-popular {
    transform: scale(1.05);
}

@media (max-width: 767.98px) {
    .pricing-card-popular {
        transform: scale(1);
    }
}

/* Success Checkmark Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.success-checkmark .check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #198754;
}

.success-checkmark .check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.success-checkmark .check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotate-circle 4.25s ease-in;
}

.success-checkmark .check-icon::before,
.success-checkmark .check-icon::after {
    content: '';
    height: 100px;
    position: absolute;
    background: #fff;
    transform: rotate(-45deg);
}

.success-checkmark .icon-line {
    height: 5px;
    background-color: #198754;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.success-checkmark .icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.success-checkmark .icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.success-checkmark .icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(25, 135, 84, 0.5);
}

.success-checkmark .icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: #fff;
}

@keyframes rotate-circle {
    0% {
        transform: rotate(-45deg);
    }
    5% {
        transform: rotate(-45deg);
    }
    12% {
        transform: rotate(-405deg);
    }
    100% {
        transform: rotate(-405deg);
    }
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }
    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }
    100% {
        width: 25px;
        left: 14px;
        top: 46px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 55px;
        right: 0;
        top: 35px;
    }
    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}

/* Dashboard Styles */
.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #198754;
    position: relative;
    animation: pulse-ring 1.5s ease-in-out infinite;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #198754;
    opacity: 0.6;
    animation: pulse-ring 1.5s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Dashboard Alert Banners */
.alert {
    border-radius: 0;
}

.alert .spinner-border-sm {
    width: 1.25rem;
    height: 1.25rem;
}

/* Dashboard Sidebar */
.nav-link {
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: var(--bs-primary-light);
}

.nav-link.active {
    font-weight: 600;
}

/* Dashboard Cards */
.card {
    border-radius: 0rem;
}

.card-header {
    border-radius: 0 !important;
}

/* Dashboard Stats */
.stat-box h2 {
    font-size: 2.5rem;
}

/* Dashboard Table */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Dashboard Mobile Optimizations */
@media (max-width: 991.98px) {
    .avatar-circle {
        width: 50px;
        height: 50px;
    }

    .stat-box h2 {
        font-size: 2rem;
    }
}

/* Validation Steps */
.validation-steps {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.validation-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.validation-step.completed {
    background: rgba(25, 135, 84, 0.1);
}

.validation-step.active {
    background: rgba(255, 193, 7, 0.1);
}

.validation-step i {
    font-size: 1rem;
}

/* Activity Feed */
.activity-feed {
    max-height: 200px;
    overflow-y: auto;
}

.activity-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.activity-item small {
    line-height: 1.4;
}

/* Progress Bar Animation */
.progress-bar {
    transition: width 0.6s ease;
}

/* Empty State Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-state-icon {
    animation: float 3s ease-in-out infinite;
}

/* Floating Help Button */
.dropup .dropdown-menu {
    min-width: 220px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: var(--bs-primary-light);
}

/* Responsive adjustments for floating help button */
@media (max-width: 576px) {
    .position-fixed.bottom-0.end-0 {
        padding: 1rem !important;
    }

    .btn-lg.rounded-circle {
        width: 50px !important;
        height: 50px !important;
    }

    .btn-lg.rounded-circle i {
        font-size: 1.25rem !important;
    }
}

/* Footer Styles */
.footer-text {
    color: rgba(255, 255, 255, 0.7);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--bs-primary) !important;
}

footer .btn-outline-light:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

footer h5, footer h6 {
    color: #fff;
}

/* 4 Steps Method Section */
.step-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--bs-primary-light), transparent);
    transition: left 0.5s ease;
}

.step-card:hover::before {
    left: 100%;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--bs-primary-light) !important;
}

.step-number-badge {
    transition: all 0.3s ease;
}

.step-card:hover .step-number-badge {
    transform: scale(1.1);
    box-shadow: 0 4px 15px var(--bs-primary-shadow);
}

.step-icon i {
    transition: all 0.3s ease;
}

.step-card:hover .step-icon i {
    transform: scale(1.1);
}

@media (max-width: 991.98px) {
    .step-card:hover {
        transform: translateY(-5px);
    }
}

/* Success Stories / Testimonials Section */
.testimonial-card {
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 80px;
    color: var(--bs-primary-light);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

.testimonial-card .avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.testimonial-card .text-warning i {
    font-size: 1.1rem;
}

@media (max-width: 767.98px) {
    .testimonial-card::after {
        font-size: 60px;
        top: 15px;
        right: 15px;
    }
}

/* When to Use Section */
.reason-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

.reason-card:nth-child(1):hover {
    border-left-color: #dc3545;
}

.reason-card:nth-child(2):hover {
    border-left-color: var(--bs-primary);
}

.reason-card:nth-child(3):hover {
    border-left-color: #ffc107;
}

.reason-card:nth-child(4):hover {
    border-left-color: #198754;
}

.icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.reason-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 767.98px) {
    .icon-box {
        width: 60px;
        height: 60px;
    }

    .icon-box i {
        font-size: 1.5rem !important;
    }

    .reason-card h5 {
        font-size: 1.1rem;
    }
}
