/* Custom Styles for Ecofynds Form */

/* General Body and Container */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f0f2f5; /* Light gray background */
    color: #333;
    line-height: 1.6;
}

.premium-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.premium-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.premium-header h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #2c3e50; /* Darker blue-gray for emphasis */
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.premium-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    padding: 0 20px; /* Add some padding for line to extend */
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 25px; /* Half of circle height */
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: #e0e0e0;
    z-index: 1;
    border-radius: 5px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    flex: 1;
    z-index: 2;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #777;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 3px solid #e0e0e0;
}

.step.active .step-circle {
    background-color: #28a745; /* Green for active */
    color: #fff;
    border-color: #28a745;
    box-shadow: 0 0 0 5px rgba(40, 167, 69, 0.3);
}

.step.completed .step-circle {
    background-color: #007bff; /* Blue for completed */
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 0 0 5px rgba(0, 123, 255, 0.3);
}

.step.completed .step-circle::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.5rem;
}

.step-label {
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.step.active .step-label {
    color: #28a745;
    font-weight: 600;
}

.step.completed .step-label {
    color: #007bff;
    font-weight: 600;
}


/* Form Sections */
.form-section {
    background-color: #fcfcfc;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-section h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #34495e; /* Darker blue-gray */
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.form-section h2 i {
    color: #007bff;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    box-shadow: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.form-control::placeholder {
    color: #a0a0a0;
}

/* Buttons */
.btn-premium {
    background-color: #28a745; /* Green */
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-premium:hover {
    background-color: #218838; /* Darker green */
    color: #fff;
    transform: translateY(-2px);
}

.btn-premium-secondary {
    background-color: #6c757d; /* Gray */
    color: #fff;
}

.btn-premium-secondary:hover {
    background-color: #5a6268; /* Darker gray */
    color: #fff;
}

/* Alerts */
.alert {
    border-radius: 8px;
    font-size: 0.95rem;
    padding: 15px 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
.alert-danger ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}
.alert-danger ul li {
    margin-bottom: 5px;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.alert-success h5 {
    color: #155724;
}

/* File Upload Custom Style */
.file-upload {
    border: 2px dashed #a0a0a0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* Important for input positioning */
    background-color: #fdfdfd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px; /* Ensure sufficient clickable area */
}

.file-upload:hover {
    border-color: #007bff;
    background-color: #e9f5ff;
}

.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 10px;
}

.file-upload-text {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.file-upload-hint {
    font-size: 0.85rem;
    color: #777;
}

/* Image Previews for File Uploads */
.preview-image {
    max-width: 100%;
    height: auto;
    max-height: 200px; /* Limit height of preview */
    display: block;
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    object-fit: contain; /* Ensures the image fits within the bounds without cropping */
}

/* Payment Summary */
.payment-summary {
    background-color: #e6f7ff; /* Light blue background */
    border: 1px solid #b3e0ff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #333;
}

.payment-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #cceeff;
}

.payment-summary-item:last-child {
    border-bottom: none;
}

.payment-summary-total {
    font-weight: 700;
    font-size: 1.3rem;
    padding-top: 15px;
    border-top: 2px solid #99daff;
    margin-top: 15px;
}

/* Coupon Section */
.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn-outline-primary {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-color: #007bff;
    color: #007bff;
    transition: all 0.3s ease;
}

.input-group .btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
}

.coupon-success {
    color: #28a745;
    font-weight: 500;
}

/* Security Badge */
.security-badge {
    text-align: center;
    margin-top: 40px;
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.security-badge i {
    color: #007bff;
    font-size: 1.2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .premium-container {
        margin: 20px auto;
        padding: 20px;
    }

    .premium-header h1 {
        font-size: 2rem;
    }

    .premium-header p {
        font-size: 1rem;
    }

    .step-indicator {
        flex-wrap: wrap;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .step-indicator::before {
        top: 25px;
        left: 5%;
        right: 5%;
    }

    .step {
        width: 33.33%; /* Adjust for 3 steps */
        margin-bottom: 15px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-width: 2px;
    }
    
    .step.completed .step-circle::before {
        font-size: 1.2rem;
    }

    .step-label {
        font-size: 0.85rem;
    }

    .form-section {
        padding: 20px;
    }

    .form-section h2 {
        font-size: 1.5rem;
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }

    .form-section h2 i {
        margin-bottom: 10px;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 15px;
    }

    .d-flex.justify-content-between .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .premium-header h1 {
        font-size: 1.8rem;
    }

    .premium-header p {
        font-size: 0.95rem;
    }

    .step-indicator::before {
        display: none; /* Hide line on very small screens */
    }

    .step {
        width: 100%; /* Stack steps vertically on very small screens */
        margin-bottom: 10px;
    }

    .step:last-child {
        margin-bottom: 0;
    }
}