/* PEUGEOT Campaign Styles */

/* Import Peugeot Fonts */
@import url('../fonts/stylesheet.css');

/* Import Inter Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* CSS Variables - Updated to Black Theme */
:root {
    --peugeot-primary: #04b0e6;
    --peugeot-primary-dark: #0097c5;
    --peugeot-primary-light: #47d4ff;
    --peugeot-dark: #04b0e6;
    --peugeot-gray: #64748b;
    --peugeot-light-gray: #f8fafc;
    --peugeot-white: #ffffff;
    --peugeot-success: #10b981;
    --peugeot-warning: #f59e0b;
    --peugeot-danger: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Peugeot', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--peugeot-dark);
    background: linear-gradient(135deg, var(--peugeot-light-gray) 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Peugeot', sans-serif;
    font-weight: 700;
}

/* Inter Font Classes */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.font-inter-light {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 300;
}

.font-inter-regular {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 400;
}

.font-inter-medium {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 500;
}

.font-inter-semibold {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600;
}

.font-inter-bold {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700;
}

.required::after {
    content: ' *';
    color: var(--peugeot-danger);
}
main{
    background-color: #ffffff;
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
}

.file-preview {
    margin-top: 10px;
    padding: 15px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.file-preview.has-file {
    border-color: var(--peugeot-success);
    background-color: #d4edda;
}

.file-preview-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.file-preview-content i {
    font-size: 1.5rem;
    color: var(--peugeot-primary);
}

.file-name {
    flex: 1;
    font-weight: 100;
    color: var(--peugeot-dark);
    font-size: 10px;
}

.file-thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.file-thumbnail img {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.pdf-icon {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease;
}

.pdf-icon:hover {
    transform: scale(1.05);
}

.remove-file {
    border: none;
    background: none;
    color: var(--peugeot-danger);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.remove-file:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.remove-file i:hover {
    color: #fff !important;
}

/* Form Validation Styles */
.form-control.is-valid {
    border-color: var(--peugeot-success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='m2.3 6.73.94-.94 1.44 1.44L7.4 4.5l.94.94L4.66 9.17z'/%3e%3c/svg%3e");
}

.form-control.is-invalid {
    border-color: var(--peugeot-danger);
    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='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.5 5.5 1 1m0-1-1 1'/%3e%3c/svg%3e");
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--peugeot-danger);
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--peugeot-success);
}

/* Input Focus Styles */
.form-control:focus {
    border-color: var(--peugeot-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

.form-select:focus {
    border-color: var(--peugeot-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

/* Phone and Document Input Styling */
.form-control[data-mask] {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Success Animation */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.form-control.is-valid {
    animation: successPulse 0.3s ease-in-out;
}

/* Error Animation */
@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-control.is-invalid {
    animation: errorShake 0.3s ease-in-out;
}
/* Header */
.peugeot-header {
    background:#04b0e6;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 80px;
    width: auto;
    filter: invert(0);
    display: flex;
    justify-self: center;
}

.header-text {
    font-family: 'Peugeot-Light', sans-serif;
    font-size: 1.1rem;
    color: var(--peugeot-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.points-display span{
    font-size: 13px;
}

/* Campaign Section */
.campaign-section {
    background: url(../images/bg1.webp);
    background-position-x: 75%;
    background-size: cover;
    position: relative;
    padding: 4rem 0;
    height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.performance-card h6{
    font-size: 13px !important;
}

.campaign-content {
    position: relative;
    z-index: 2;
    background: #ffffff00;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.campaign-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.campaign-title .hashtag {
    color: var(--peugeot-light-gray);
    font-family: 'Peugeot', sans-serif;
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.campaign-title .brand {
    color: var(--peugeot-light-gray);
    font-family: 'Peugeot', sans-serif;
    display: block;
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.campaign-title .subtitle {
    color: var(--peugeot-light-gray);
    font-family: 'Peugeot', sans-serif;
    display: block;
    font-size: 1.8rem;
    font-weight: 300;
}

.campaign-description {
    font-size: 1.2rem;
    color: var(--peugeot-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.campaign-btn {
    background: linear-gradient(135deg, var(--peugeot-primary) 0%, var(--peugeot-primary-light) 100%);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0px;
}

.campaign-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--peugeot-primary-light) 0%, var(--peugeot-primary) 100%);
}

/* Background Elements */
.bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: #04b1e63c;
    animation: float 6s ease-in-out infinite;
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    top: -10%;
    left: -10%;
    animation-delay: 0s;
    backdrop-filter: blur(2px);
}

.bg-circle-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    backdrop-filter: blur(2px);
}

.bg-circle-3 {
    width: 150px;
    height: 150px;
    top: 28%;
    right: 6%;
    animation-delay: 4s;
    backdrop-filter: blur(2px);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Modal Styles */
.modal-content {
    border: none;
    /* border-radius: 15px; */
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--peugeot-primary) 0%, var(--peugeot-primary-light) 100%);
    color: var(--peugeot-white);
    border-bottom: none;
    padding: 1.5rem;
}

.modal-title {
    font-family: 'Peugeot', sans-serif;
    font-size: 1.1rem;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
    background: var(--peugeot-white);
}

.modal-footer {
    background: var(--peugeot-light-gray);
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--peugeot-dark);
    margin-bottom: 0.5rem;
}

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

.form-control:focus, .form-select:focus {
    border-color: var(--peugeot-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
    outline: none;
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: var(--peugeot-danger);
}

.form-control.is-valid, .form-select.is-valid {
    border-color: var(--peugeot-success);
}

/* Select2 Customization */
.select2-container--bootstrap-5 .select2-selection {
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    min-height: 50px;
    padding: 11px !important;
}


.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--peugeot-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25) !important;
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: relative;
    z-index: 2;
}

.file-preview {
    margin-top: 0.5rem;
    padding: 1rem;
    background: var(--peugeot-light-gray);
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.file-preview.has-file {
    background: #ecfdf5;
    border-color: var(--peugeot-success);
}

.file-preview-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.file-preview-content i {
    font-size: 1.5rem;
    color: var(--peugeot-primary);
}

.file-name {
    flex: 1;
    font-weight: 500;
    color: var(--peugeot-dark);
    text-align: left;
}

.remove-file {
    border: none;
    background: none;
    color: var(--peugeot-danger);
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.remove-file:hover {
    background: var(--peugeot-danger);
    color: var(--peugeot-white);
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 400 !important;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--peugeot-primary) 0%, var(--peugeot-primary-light) 100%);
    color: var(--peugeot-white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--peugeot-primary-light) 0%, var(--peugeot-primary) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--peugeot-gray);
    color: var(--peugeot-white);
}

.btn-secondary:hover {
    background: var(--peugeot-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Footer */
.peugeot-footer {
    background: var(--peugeot-dark);
    color: var(--peugeot-white);
    padding: 2rem 0;
    margin-top: auto;
}

.peugeot-footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Loading Animation */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--peugeot-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .campaign-title {
        font-size: 2.5rem;
    }
    
    .campaign-title .brand {
        font-size: 3rem;
    }
    
    .campaign-title .hashtag {
        font-size: 2rem;
    }
    
    .campaign-title .subtitle {
        font-size: 1.4rem;
    }
    
    .campaign-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .campaign-description {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    
}

@media (max-width: 576px) {
    .campaign-title {
        font-size: 2rem;
    }
    
    .campaign-title .brand {
        font-size: 2.5rem;
    }
    
    .campaign-title .hashtag {
        font-size: 1.5rem;
    }
    
    .campaign-title .subtitle {
        font-size: 1.2rem;
    }
    
    .campaign-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .modal-dialog {
        margin: 0 !important;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* .slide-up {
    animation: slideUp 0.3s ease-out;
} */

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

/* Utility Classes */
.text-peugeot-primary {
    color: var(--peugeot-primary) !important;
}

.text-peugeot-primary-light {
    color: var(--peugeot-primary-light) !important;
}

.bg-peugeot-primary {
    background-color: var(--peugeot-primary) !important;
}

.bg-peugeot-primary-light {
    background-color: var(--peugeot-primary-light) !important;
}

.border-peugeot-primary {
    border-color: var(--peugeot-primary) !important;
}

.shadow-peugeot {
    box-shadow: var(--shadow-lg) !important;
}
.modal-footer .btn{
    width: 100%;
}


.carousel-item-next, .carousel-item-prev, .carousel-item.active{
    display: flex !important;
}

/* Vehicle Carousel Styles */
.vehicle-carousel {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--peugeot-white);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 330px;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.carousel-item.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-item.prev {
    transform: translateX(-100%);
}

.vehicle-image {
    width: 100%;
    /* max-width: 200px; */
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.carousel-item:hover .vehicle-image {
    transform: scale(1.05);
}

.vehicle-info {
    text-align: center;
}

.vehicle-info h5 {
    color: var(--peugeot-primary);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.points-badge {
    background: var(--peugeot-primary);
    color: var(--peugeot-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(4, 176, 230, 0.9);
    color: var(--peugeot-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--peugeot-primary);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    display: none !important;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--peugeot-primary);
    transform: scale(1.2);
}

.carousel-item.selected {
    /* border: 3px solid var(--peugeot-primary); */
    box-shadow: 0 0 20px rgba(4, 176, 230, 0.3);
}

@media (max-width: 1024px) {
    .peugeot-header{
        background: #00356b !important;
    }
    .peugeot-footer{
        background: #00356b !important;
    }
    .btn-primary{
        background: #00356b !important;
    }
    .campaign-title img{
        width: 100% !important;
    }
    .bg-circle{
        background: #00356b33 !important;
    }

}

@media (max-width: 768px) {
    .vehicle-carousel {
        max-width: 100%;
    }
    
   
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
}