/*
 * ========================================
 * CIPD Assignment Help - Quote Form Styles
 * ========================================
 * Colors used:
 * Primary Purple: #4a148c
 * Secondary Purple: #6a1b9a
 * Accent Cyan: #00e5ff
 * ========================================
 */

/* ========================================
   QUOTE PAGE CONTAINER
   ======================================== */
.quote-page-container {
    min-height: calc(100vh - 200px);
    padding: 40px 0 60px;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ========================================
   MAIN FORM BOX - LEFT SIDE
   ======================================== */
.orderbox1 {
    flex: 1;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 40px 45px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* ========================================
   SUMMARY BOX - RIGHT SIDE
   ======================================== */
.summary-box {
    width: 340px;
    min-width: 340px;
    background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 50%, #4a148c 100%);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(74, 20, 140, 0.4);
    padding: 30px;
    color: #fff;
    position: sticky;
    top: 100px;
    border: 2px solid rgba(0, 229, 255, 0.3);
}

/* ========================================
   FORM HEADER
   ======================================== */
.form-header {
    font-size: 24px;
    font-weight: 700;
    color: #4a148c;
    margin-bottom: 30px;
    line-height: 1.3;
}

/* ========================================
   FORM ROWS - 2 Fields Per Row
   ======================================== */
.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 22px;
}

.form-row.single {
    display: block;
}

.form-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-group.full-width {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* ========================================
   LABELS
   ======================================== */
.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    min-width: 110px;
    text-align: right;
}

.form-group.full-width .form-label {
    min-width: auto;
    text-align: left;
}

/* ========================================
   FORM CONTROLS (Inputs, Selects, Textareas)
   ======================================== */
.form-control {
    flex: 1;
    width: 100%;
    height: 48px;
    padding: 12px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333 !important;
    background-color: #fff !important;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-control:focus {
    border-color: #4a148c;
    box-shadow: 0 3px 15px rgba(74, 20, 140, 0.15);
    background-color: #fff !important;
    color: #333 !important;
}

.form-control:hover {
    border-color: #6a1b9a;
}

.form-control::placeholder {
    color: #999;
}

/* Select dropdown options */
select.form-control option {
    background-color: #fff !important;
    color: #333 !important;
    padding: 10px;
}

select.form-control option:hover,
select.form-control option:focus,
select.form-control option:checked {
    background-color: #4a148c !important;
    color: #fff !important;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff !important;
    color: #333 !important;
    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='%234a148c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

input.form-control {
    background-color: #fff !important;
    color: #333 !important;
}

input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    background-color: #fff !important;
    color: #333 !important;
}

textarea.form-control {
    height: 120px;
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
    background-color: #fff !important;
    color: #333 !important;
}

/* ========================================
   FILE INPUT
   ======================================== */
.file-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.browse-btn {
    height: 48px;
    padding: 0 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.browse-btn:hover {
    background: linear-gradient(135deg, #6a1b9a 0%, #4a148c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 20, 140, 0.4);
}

.browse-btn i {
    font-size: 14px;
}

.file-name {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.file-name.has-file {
    color: #4a148c;
    font-weight: 500;
}

/* ========================================
   SECTION DIVIDER
   ======================================== */
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #4a148c;
    margin-top: 35px;
    margin-bottom: 25px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, #00e5ff, #4a148c);
    border-radius: 2px;
}

/* ========================================
   SUBMIT BUTTON
   ======================================== */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 16px 45px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 25px rgba(74, 20, 140, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #6a1b9a 0%, #4a148c 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(74, 20, 140, 0.4);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(5px);
}

/* ========================================
   SUMMARY BOX STYLES
   ======================================== */
.summary-box .h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 229, 255, 0.3);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-box .t-text {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.summary-box .t-text1 {
    color: #00e5ff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), transparent);
    margin: 20px 0;
}

/* ========================================
   GUARANTEE BADGES
   ======================================== */
.guarantee-badges {
    margin-bottom: 20px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.badge-item i {
    color: #00e5ff;
    font-size: 16px;
}

/* ========================================
   ORDER BUTTON IN SUMMARY
   ======================================== */
.summary-box .btn-order {
    background: linear-gradient(135deg, #00e5ff 0%, #00d4ff 100%);
    border: none;
    border-radius: 30px;
    color: #4a148c;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-box .btn-order:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #00e5ff 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.4);
}

.summary-box .btn-order i {
    font-size: 14px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .form-wrapper {
        flex-direction: column;
    }
    
    .summary-box {
        width: 100%;
        min-width: auto;
        position: static;
        order: -1;
        margin-bottom: 20px;
    }
    
    .orderbox1 {
        padding: 30px 35px;
    }
}

@media (max-width: 768px) {
    .quote-page-container {
        padding: 20px 0 40px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .form-label {
        min-width: auto;
        text-align: left;
    }
    
    .orderbox1 {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .summary-box {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .form-header {
        font-size: 20px;
    }
    
    .file-input-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-name {
        max-width: 100%;
    }
    
    .submit-btn {
        width: 100%;
        padding: 14px 30px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 0 15px;
    }
    
    .orderbox1 {
        padding: 20px 15px;
    }
    
    .summary-box {
        padding: 20px 15px;
    }
    
    .form-header {
        font-size: 18px;
    }
    
    .form-control {
        height: 44px;
        padding: 10px 14px;
    }
    
    .browse-btn {
        padding: 0 20px;
        height: 44px;
    }
}

/* ========================================
   FORM VALIDATION STATES
   ======================================== */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.1);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.1);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.orderbox1, .summary-box {
    animation: fadeInUp 0.6s ease-out;
}

.summary-box {
    animation-delay: 0.2s;
}

/* Spinner animation for loading state */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}
