/**
 * Banner Section Styles - Front Page
 * 
 * @package EvisioFront
 * @version 1.0
 */

/* CSS Variables */
:root {
    /* Color Palette */
    --primary-orange: var(--orange-front);
    --primary-orange-light: var(--orange-front);
    --primary-orange-dark: var(--orange-front);
    --primary-teal: var(--green-front);
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #A0A0A0;
    --text-gray: #555555;
    --text-blue: #007BFF;
    --text-teal: #006699;
    --success-green: #4CAF50;
    --info-blue: #2196F3;
    --danger-red: #F44336;
    --warning-orange: var(--orange-front);
    --bg-light-gray: #F5F5F5;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Main Banner Container */
.main-banner {
    background: var(--bg-light-gray);
    min-height: 100vh;
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem !important;
}

.banner-container {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: center;
}

/* Left Section - Marketing */
.marketing-section {
    color: var(--text-dark);
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.headline {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.headline .teal {
    color: var(--primary-teal);
}

.headline .orange {
    color: var(--primary-orange);
}

.description {
    font-size: 1.25rem;
    color: #221F20;
    margin-bottom: var(--spacing-xl);
    padding-right: 1rem;
}

.input-group {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.input-field {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.125rem;
    padding: var(--spacing-md);
    color: var(--text-dark);
    background: transparent;
}

.input-field::placeholder {
    color: var(--text-light);
}

.country-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    border-left: 1px solid #E0E0E0;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.flag-icon {
    width: 24px;
    height: 18px;
    background-image: url('../../../media/flags/021-united-states.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 2px;
}

.chevron-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--text-light);
}

.cta-button {
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 0px 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    text-decoration: none !important;
    display: inline-block;
    display: flex;
    align-items: center;
}

.cta-button:hover {
    background: var(--primary-orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
    text-decoration: none;
}

/* Input group hover effects */
.input-group-hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.input-focused {
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.country-selector-active {
    background: var(--primary-orange-light) !important;
    color: var(--white);
}

/* Preferred Partner Section */
.preferred-partner-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.partner-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.partner-text {
    color: #005D8A;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    text-align: left;
    line-height: 1.4;
}

/* Right Section - Dashboard Preview */
.dashboard-preview-section {
    position: relative;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
}

.dashboard-preview-card {
    background: transparent;
    position: relative;
}

.dashboard-image {
    width: 100%;
    height: 514px;
    object-fit: cover;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.125rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.dashboard-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

.dashboard-image:hover img {
    transform: scale(1.02);
}

.overlay-text {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-dark);
    backdrop-filter: blur(10px);
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: var(--white);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@media (min-width: 1441px) {
    .main-banner {
        padding-top: 6rem !important;
    }
}

@media (min-width: 1367px) {
    .main-banner {
        min-height: auto;
    }

    .dashboard-preview-section {
        padding-left: 1rem;
    }
}

@media (min-width: 1301px) and (max-width:1900px) {
    .main-banner.section-container {
        padding: 8rem 1rem 0;
    }
}

@media (min-width: 1367px) and (max-width:1440px) {
    .dashboard-image img {
        margin-top: -2rem;
    }
}

@media (min-width: 1025px) and (max-width:1366px) {
    .dashboard-image img {
        margin-top: -5rem;
    }
}

@media (min-width: 768px) and (max-width:1300px) {
    .main-banner.section-container {
        padding: 5rem 1rem 0;
    }
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .banner-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .headline {
        font-size: 3rem;
    }

    .description {
        font-size: 1.125rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .input-group {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .dashboard-image {
        height: 500px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {

    .main-banner.section-container {
        padding: 5rem 1rem 0;
    }

    .main-banner {
        padding: 3rem 1rem 0;
        min-height: auto !important;
    }

    .banner-container {
        gap: var(--spacing-lg);
    }

    .dashboard-image {
        height: auto !important;
    }

    .headline {
        font-size: 3.3rem;
        line-height: 1.1;
    }

    .description {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-lg);
    }

    .input-group {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }

    .input-field {
        padding: var(--spacing-sm);
        font-size: 1.5rem !important;
    }

    .country-selector {
        border-left: none;
        border-top: 1px solid #E0E0E0;
        padding-top: var(--spacing-sm);
        justify-content: center;
    }

    .cta-button {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1.5rem !important;
        width: 100%;
    }

    .preferred-partner-section {
        gap: var(--spacing-sm);
        margin-top: var(--spacing-lg);
    }

    .partner-text {
        font-size: 1.2rem !important;
    }

    .dashboard-image {
        height: 400px;
    }
}