/**
 * RFQ Form Styles
 * PT Teknindo Geosistem Unggul - Request for Quotation Form
 */

/* RFQ Section Styles */
#contact-rfq {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

#contact-rfq .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact-rfq .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Contact Info Card */
.contact-info .card-body {
    background: linear-gradient(135deg, #0B6623, #e67300);
    color: white;
    border-radius: 15px;
}

.contact-info h4,
.contact-info h6 {
    color: white;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    color: #f8f9fa;
    text-decoration: underline;
}

.contact-info .text-primary {
    color: #fff !important;
}

/* RFQ Form Styles */
.rfq-form .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.rfq-form .form-control,
.rfq-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.rfq-form .form-control:focus,
.rfq-form .form-select:focus {
    border-color: #0B6623;
    box-shadow: 0 0 0 0.2rem rgba(11, 102, 35, 0.25);
}

.rfq-form .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Checkbox Styles */
.rfq-form .form-check {
    margin-bottom: 10px;
}

.rfq-form .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 2px solid #0B6623;
}

.rfq-form .form-check-input:checked {
    background-color: #0B6623;
    border-color: #0B6623;
}

.rfq-form .form-check-label {
    font-size: 13px;
    color: #495057;
    margin-left: 8px;
}

/* File Upload Styles */
.rfq-form input[type="file"] {
    border: 2px dashed #0B6623;
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rfq-form input[type="file"]:hover {
    background: #e9ecef;
    border-color: #e67300;
}

/* Button Styles */
.rfq-form .btn-primary {
    background: linear-gradient(135deg, #0B6623, #e67300);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(11, 102, 35, 0.3);
}

.rfq-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 102, 35, 0.4);
}

.rfq-form .btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.rfq-form .btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

/* Alert Styles */
.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border: 1px solid #0B6623;
    border-radius: 10px;
    color: #0c5460;
}

.alert-info .icon-info-circle {
    color: #0B6623;
}

/* Responsive Design */
@media (max-width: 768px) {
    #contact-rfq {
        padding: 40px 0;
    }
    
    .rfq-form .form-check {
        margin-bottom: 15px;
    }
    
    .rfq-form .form-check-label {
        font-size: 12px;
    }
    
    .rfq-form .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Loading State */
.rfq-form .btn-loading {
    position: relative;
    color: transparent;
}

.rfq-form .btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success State */
.rfq-form .form-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Error State */
.rfq-form .form-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Product Category Grid */
.product-categories {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.product-categories .form-check {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.product-categories .form-check:hover {
    border-color: #0B6623;
    box-shadow: 0 2px 8px rgba(11, 102, 35, 0.1);
}

.product-categories .form-check-input:checked + .form-check-label {
    color: #0B6623;
    font-weight: 600;
}

/* Form Validation Messages */
.invalid-feedback {
    display: block;
    font-size: 12px;
    color: #dc3545;
    margin-top: 5px;
}

.valid-feedback {
    display: block;
    font-size: 12px;
    color: #28a745;
    margin-top: 5px;
}

/* Progress Indicator */
.form-progress {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 30px;
}

.form-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #0B6623, #e67300);
    width: 0%;
    transition: width 0.3s ease;
}

/* Tooltip Styles */
.form-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    color: #6c757d;
    cursor: help;
}

.form-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

.form-tooltip:hover::before {
    content: "";
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
}