/**
 * Banner Section CSS - Modern Design
 * Matches new theme structure with old theme logic
 */

/* ============================================
   Banner Container
============================================ */
.eltdf-title-holder {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    padding: 60px 0;
}

.eltdf-title-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.eltdf-title-inner {
    width: 100%;
}

/* ============================================
   Inner Page Banner (Two Column Layout)
============================================ */
#innerbnrbg {
    width: 100%;
    position: relative;
}

.eltdf-row-grid-section-wrapper {
    width: 100%;
}

.eltdf-row-grid-section {
    width: 100%;
}

.wpb_row.vc_inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

/* ============================================
   Left Column: Stats Section
============================================ */
.eltdf-grid-col-6 {
    flex: 1;
    min-width: 300px;
}

.eltdf-section-title-holder {
    margin-bottom: 30px;
}

.eltdf-st-inner {
    color: #ffffff;
}

.eltdf-page-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 15px 0;
    color: #ffffff;
}

.eltdf-st-text {
    display: block;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    opacity: 0.9;
}

/* Stats Counter */
.eltdf-countdownnew {
    margin-top: 30px;
}

.countdown-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.countdown-section {
    flex: 1;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.countdown-section:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.countdown-amount {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.countdown-period {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Right Column: Order Form
============================================ */
.eltdf-contact-form-7-widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.eltdf-cf7-content-holder {
    width: 100%;
}

.eltdf-cf7-mark {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.eltdf-cf7-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 25px 0;
    line-height: 1.3;
}

/* ============================================
   Form Styling
============================================ */
.orderform-section {
    width: 100%;
}

.eltdf-grid-col-12,
.eltdf-grid-col-6 {
    position: relative;
    margin-bottom: 20px;
}

.eltdf-grid-col-6 {
    width: 48%;
    display: inline-block;
    vertical-align: top;
}

.eltdf-grid-col-6:nth-child(odd) {
    margin-right: 4%;
}

.dashedBorder {
    width: 100%;
    padding: 14px 45px 14px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #2d3748;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.dashedBorder:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dashedBorder::placeholder {
    color: #a0aec0;
}

/* Form Icons */
.eltdf-grid-col-12 .fa,
.eltdf-grid-col-6 .fa {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 16px;
    z-index: 1;
}

/* Textarea */
textarea.dashedBorder {
    min-height: 100px;
    resize: vertical;
    padding-top: 12px;
}

.eltdf-grid-col-12 textarea + .fa {
    top: 20px;
    transform: none;
}

/* Select Dropdown */
select.dashedBorder {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* ============================================
   Page Counter
============================================ */
.pageCountGroupBtn {
    background: #667eea;
    color: #ffffff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pageCountGroupBtn:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.pageCount {
    width: calc(100% - 80px) !important;
    display: inline-block !important;
    text-align: center;
    margin: 0 5px;
    font-weight: 600;
}

.wordCount {
    display: block;
    text-align: center;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

/* ============================================
   File Upload
============================================ */
#fileUploadType {
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px dashed #cbd5e0;
    text-align: center;
    transition: all 0.3s ease;
}

#fileUploadType:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

#uploadFiles1 {
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#uploadFiles1:hover {
    color: #5568d3;
}

#uploadFiles1 .fa {
    position: static;
    transform: none;
    margin-right: 8px;
    font-size: 18px;
}

.fileMessage {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #718096;
}

#fileUpload1 {
    margin-bottom: 15px;
}

.file-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.file-name {
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
}

.file-size {
    font-size: 12px;
    color: #a0aec0;
}

.progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.btn-remove {
    background: #f56565;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #e53e3e;
}

/* ============================================
   Submit Button
============================================ */
.wpcf7-submit {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.eltdf-contact-form-animation .wpcf7-submit {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

/* ============================================
   Conditional Field Hiding
============================================ */
.hide-if-customize {
    display: none !important;
}

/* ============================================
   Responsive Design
============================================ */
@media (max-width: 991px) {
    .wpb_row.vc_inner {
        flex-direction: column;
    }
    
    .eltdf-grid-col-6 {
        width: 100%;
        min-width: 100%;
    }
    
    .eltdf-page-title {
        font-size: 32px;
    }
    
    .countdown-section {
        min-width: 100px;
    }
    
    .countdown-amount {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .eltdf-title-holder {
        padding: 40px 0;
    }
    
    .eltdf-contact-form-7-widget {
        padding: 20px;
    }
    
    .eltdf-cf7-title {
        font-size: 20px;
    }
    
    .eltdf-grid-col-6 {
        width: 100%;
        margin-right: 0 !important;
    }
    
    .countdown-row {
        gap: 10px;
    }
    
    .countdown-section {
        min-width: calc(50% - 5px);
        padding: 15px 10px;
    }
    
    .eltdf-page-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .dashedBorder {
        padding: 12px 35px 12px 35px;
        font-size: 14px;
    }
    
    .pageCountGroupBtn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .countdown-amount {
        font-size: 18px;
    }
    
    .countdown-period {
        font-size: 11px;
    }
}

/* ============================================
   Animation Effects
============================================ */
.eltdf-eh-item {
    animation: fadeInUp 0.6s ease;
}

.eltdf-contact-form-7-widget {
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

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

/* ============================================
   Simple Title Section (Homepage/Other Pages)
============================================ */
.eltdf-title-holder .eltdf-grid {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.eltdf-title-holder .eltdf-title-info {
    margin-bottom: 20px;
}

.eltdf-page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-top: 10px;
}

/* ============================================
   Form Validation States
============================================ */
.dashedBorder.is-invalid {
    border-color: #f56565;
    background: #fff5f5;
}

.dashedBorder.is-valid {
    border-color: #48bb78;
    background: #f0fff4;
}

/* ============================================
   Loading State
============================================ */
.wpcf7-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.wpcf7-submit.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 0.6s linear infinite;
}

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

/* ============================================
   Utility Classes
============================================ */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.vc_empty_space {
    display: block;
}

.vc_empty_space_inner {
    display: block;
}

/* ============================================
   Homepage Banner Specific Styles
============================================ */
.homepage-hero {
    position: relative;
    min-height: 600px;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.homepage-hero .headImage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.homepage-hero .eltdf-row-grid-section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Form Section (Top/Right) */
.banner-discription-inner {
    max-width: 450px;
    margin-left: auto;
    margin-bottom: 40px;
}

.banner-discription {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.eltdf-cf7-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

/* Content Section (Below Form) */
.banner-txt {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
}

.banner-txt-inner {
    margin-bottom: 40px;
}

.eltdf-st-tagline {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.eltdf-st-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.eltdf-st-text {
    display: block;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

/* Features Grid */
.wpb_column-feature {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.wpb_column-feature .vc_col-sm-6 {
    flex: 1;
}

.eltdf-iwt-text {
    font-size: 15px;
    color: #ffffff;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eltdf-iwt-text .fa {
    color: #48bb78;
    font-size: 18px;
}

/* Trust Badges */
.uni-feature-wrapper {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.uni-feature-heading {
    margin-bottom: 30px;
}

.uni-feature-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
}

.uni-features-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.uni-feature-item {
    flex: 0 0 auto;
}

.uni-feature-item img {
    max-width: 200px;
    height: auto;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.uni-feature-item img:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* ============================================
   Homepage Banner Responsive
============================================ */
@media (max-width: 991px) {
    .homepage-hero {
        min-height: auto;
        padding: 60px 0 40px;
    }
    
    .banner-discription-inner {
        max-width: 100%;
        margin-left: 0;
        margin-bottom: 30px;
    }
    
    .eltdf-st-title {
        font-size: 36px;
    }
    
    .wpb_column-feature {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .homepage-hero {
        padding: 40px 0 30px;
    }
    
    .banner-discription {
        padding: 20px;
    }
    
    .eltdf-cf7-title {
        font-size: 18px;
    }
    
    .eltdf-st-title {
        font-size: 28px;
    }
    
    .eltdf-st-text {
        font-size: 16px;
    }
    
    .uni-features-row {
        gap: 20px;
    }
    
    .uni-feature-item img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .eltdf-st-tagline {
        font-size: 14px;
    }
    
    .eltdf-st-title {
        font-size: 24px;
    }
    
    .uni-feature-title {
        font-size: 20px;
    }
    
    .uni-feature-item img {
        max-width: 120px;
    }
}

/* ============================================
   Homepage Banner Grid Layout (Two Columns)
============================================ */

.homepage-banner-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 40px;
    align-items: start;
}

.banner-content-column {
    color: #ffffff;
}

.banner-form-column {
    position: sticky;
    top: 100px;
}

/* Override previous styles for new structure */
.homepage-hero .banner-discription-inner {
    max-width: 100%;
    margin-left: 0;
    margin-bottom: 0;
}

.homepage-hero .banner-txt {
    text-align: left;
    margin-bottom: 0;
}

/* Responsive Grid Layout */
@media (max-width: 1024px) {
    .homepage-banner-grid {
        grid-template-columns: 1fr 400px;
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .homepage-banner-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .banner-form-column {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .banner-content-column {
        order: 2;
    }
    
    .banner-form-column {
        order: 1;
    }
}

