/**
 * Request Free Quote - Frontend Styles
 * Color Palette: #0041c2 (Primary Blue), #000 (Black)
 * Font: FuturaPT, Helvetica, Arial, Lucida, sans-serif
 */

/* Container */
.rfq-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.rfq-form-wrapper {
    background: #ffffff;
    border: 2px solid #0041c2;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 65, 194, 0.1);
}

/* Header */
.rfq-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.rfq-title {
    font-family: 'FuturaPT', Helvetica, Arial, Lucida, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.rfq-subtitle {
    font-family: 'FuturaPT', Helvetica, Arial, Lucida, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #0041c2;
    margin: 0;
}

/* Checkboxes */
.rfq-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.rfq-checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'FuturaPT', Helvetica, Arial, Lucida, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.rfq-checkbox-wrapper:hover {
    border-color: #0041c2;
    background: #f8f9ff;
}

.rfq-checkbox-wrapper input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0 15px 0 0;
    cursor: pointer;
    accent-color: #0041c2;
}

.rfq-checkbox-wrapper input[type="checkbox"]:checked + .rfq-checkbox-label {
    color: #0041c2;
    font-weight: 600;
}

.rfq-checkbox-label {
    flex: 1;
}

/* Form Grid */
.rfq-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (min-width: 600px) {
    .rfq-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Form Groups */
.rfq-form-group {
    display: flex;
    flex-direction: column;
}

.rfq-form-group-full {
    grid-column: 1 / -1;
}

/* Labels */
.rfq-label {
    font-family: 'FuturaPT', Helvetica, Arial, Lucida, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rfq-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    color: #0041c2;
}

/* Input Fields */
.rfq-input,
.rfq-textarea {
    font-family: 'FuturaPT', Helvetica, Arial, Lucida, sans-serif;
    font-size: 16px;
    padding: 14px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #000 !important;
    transition: all 0.3s ease;
    outline: none;
}

.rfq-input:focus,
.rfq-textarea:focus {
    border-color: #0041c2;
    box-shadow: 0 0 0 3px rgba(0, 65, 194, 0.1);
}

.rfq-input::placeholder,
.rfq-textarea::placeholder {
    color: #999;
}

.rfq-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button */
.rfq-submit-wrapper {
    margin-top: 35px;
}

.rfq-submit-btn {
    width: 100%;
    font-family: 'FuturaPT', Helvetica, Arial, Lucida, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background: #0041c2;
    border: none;
    border-radius: 6px;
    padding: 18px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.rfq-submit-btn:hover {
    background: #002f8f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 65, 194, 0.3);
}

.rfq-submit-btn:active {
    transform: translateY(0);
}

.rfq-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.rfq-submit-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rfq-spinner {
    animation: rfq-spin 1s linear infinite;
}

@keyframes rfq-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Messages */
.rfq-message {
    margin-top: 25px;
    padding: 16px 20px;
    border-radius: 6px;
    font-family: 'FuturaPT', Helvetica, Arial, Lucida, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.rfq-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #4caf50;
}

.rfq-message.error {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #ef5350;
}

/* Responsive Design */
@media (max-width: 599px) {
    .rfq-form-wrapper {
        padding: 30px 20px;
    }
    
    .rfq-title {
        font-size: 26px;
    }
    
    .rfq-subtitle {
        font-size: 16px;
    }
    
    .rfq-checkbox-wrapper {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .rfq-input,
    .rfq-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Accessibility */
.rfq-input:focus-visible,
.rfq-textarea:focus-visible,
.rfq-checkbox-wrapper:focus-within {
    outline: 3px solid #0041c2;
    outline-offset: 2px;
}

/* Loading State */
.rfq-form.loading .rfq-input,
.rfq-form.loading .rfq-textarea,
.rfq-form.loading .rfq-checkbox-wrapper input {
    pointer-events: none;
    opacity: 0.6;
}

/* ============================================
   SCHEDULE NOW FORM SPECIFIC STYLES
   ============================================ */

/* Schedule Hero Section */
.rfq-schedule-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 35px;
    border-bottom: 2px solid #f0f0f0;
}

@media (min-width: 768px) {
    .rfq-schedule-hero {
        flex-direction: row;
        text-align: left;
    }
}

.rfq-schedule-icon {
    flex-shrink: 0;
}

.rfq-schedule-text {
    flex: 1;
}

.rfq-schedule-container .rfq-title {
    text-align: left;
    margin-bottom: 20px;
}

.rfq-schedule-info {
    font-family: 'FuturaPT', Helvetica, Arial, Lucida, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 12px 0;
}

.rfq-schedule-info:last-child {
    margin-bottom: 0;
}

/* Schedule Form Adjustments */
.rfq-schedule-form .rfq-form-grid {
    margin-top: 0;
}

/* Date Input Styling */
input[type="date"].rfq-input {
    font-family: 'FuturaPT', Helvetica, Arial, Lucida, sans-serif;
    cursor: pointer;
}

input[type="date"].rfq-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(20%) sepia(89%) saturate(2936%) hue-rotate(208deg) brightness(91%) contrast(101%);
    margin-left: 5px;
}

/* Error State for Inputs */
.rfq-input.error,
.rfq-textarea.error {
    border-color: #ef5350 !important;
    background: #fff8f8 !important;
}

/* Mobile Adjustments for Schedule Form */
@media (max-width: 767px) {
    .rfq-schedule-hero {
        text-align: center;
    }
    
    .rfq-schedule-container .rfq-title {
        text-align: center;
        font-size: 24px;
    }
    
    .rfq-schedule-icon svg {
        width: 100px;
        height: 100px;
    }
    
    .rfq-schedule-info {
        font-size: 15px;
    }
}
