/* ============================================
   AIRCRAFT PARTS SUPPLIER FORM - FORCED STYLES
   ============================================ */

/* Main Container */
.apsf-container {
    max-width: 700px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    border: 1px solid #e1e5ea;
}

/* Header Section */
.apsf-container h2 {
    background: #1a2b4c !important;
    color: #ffffff !important;
    padding: 30px 30px 25px 30px !important;
    margin: 0 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    position: relative;
}

.apsf-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    width: 50px;
    height: 3px;
    background: #f39c12;
}

/* Description Text */
.apsf-description {
    padding: 0 30px;
    margin: 20px 0 0 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

/* Form Styling */
.apsf-form {
    padding: 15px 30px 30px 30px;
}

/* Form Fields */
.apsf-field {
    margin-bottom: 20px;
}

.apsf-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a2b4c;
    font-size: 14px;
}

.apsf-field .required {
    color: #e74c3c;
    margin-left: 3px;
}

.apsf-field .optional {
    color: #95a5a6;
    font-weight: 400;
    font-size: 12px;
    margin-left: 8px;
}

/* Input Fields */
.apsf-field input[type="text"],
.apsf-field input[type="tel"],
.apsf-field input[type="email"],
.apsf-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e1e5ea;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
}

.apsf-field input:focus,
.apsf-field textarea:focus {
    border-color: #f39c12;
    outline: none;
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.1);
}

.apsf-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Field Hint */
.field-hint {
    font-size: 12px;
    color: #95a5a6;
    margin-top: -5px;
    margin-bottom: 10px;
}

/* Parts Container */
#parts-container {
    margin-bottom: 12px;
}

/* Part Rows */
.part-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.part-row input:first-child,
.part-row input:nth-child(2) {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e1e5ea;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
}

.part-row input:focus {
    border-color: #f39c12;
    outline: none;
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.1);
}

/* Remove Button - FORCED */
.apsf-container .remove-part,
div.apsf-container .remove-part,
.apsf-container button.remove-part {
    background: #f8f9fa !important;
    color: #e74c3c !important;
    border: 1px solid #e1e5ea !important;
    padding: 9px 14px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.apsf-container .remove-part:hover {
    background: #fee !important;
    border-color: #e74c3c !important;
}

/* Add Part Button - FORCED */
.apsf-container .add-part-btn,
div.apsf-container .add-part-btn,
.apsf-container button.add-part-btn {
    background: #f8f9fa !important;
    color: #1a2b4c !important;
    border: 1px solid #e1e5ea !important;
    padding: 9px 18px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.apsf-container .add-part-btn:hover {
    background: #1a2b4c !important;
    color: #ffffff !important;
    border-color: #1a2b4c !important;
}

/* Submit Button - FORCED with maximum specificity */
.apsf-container .apsf-form .submit-btn,
.apsf-container button.submit-btn,
.apsf-container input.submit-btn,
div.apsf-container .submit-btn,
form.apsf-form .submit-btn,
#apsf-unique-wrapper .submit-btn {
    width: 100% !important;
    background: #2ecc71 !important;
    background-color: #2ecc71 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 13px 24px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    margin-top: 10px !important;
    text-transform: none !important;
    font-family: inherit !important;
    line-height: normal !important;
    box-shadow: none !important;
}

.apsf-container .apsf-form .submit-btn:hover,
.apsf-container button.submit-btn:hover {
    background: #e67e22 !important;
    background-color: #e67e22 !important;
}

.apsf-container .apsf-form .submit-btn:active {
    transform: translateY(1px);
}

/* Loading Indicator */
#apsf_loading {
    display: inline-block;
    margin-left: 12px;
    color: #f39c12;
    font-size: 13px;
    font-weight: 500;
}

/* Message Container */
#apsf-message {
    margin: 0 30px 20px 30px;
}

/* Success Messages */
.apsf-success {
    background: #e8f8f5;
    color: #2ecc71;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 3px solid #2ecc71;
    font-size: 13px;
    font-weight: 500;
}

/* Error Messages */
.apsf-error {
    background: #fdf3f2;
    color: #e74c3c;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 3px solid #e74c3c;
    font-size: 13px;
    font-weight: 500;
}

/* Privacy Note */
.apsf-privacy-note {
    font-size: 11px;
    color: #95a5a6;
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e1e5ea;
}

/* Success Message Screen */
.apsf-success-message {
    text-align: center;
    padding: 50px 40px;
    background: #1a2b4c;
}

.apsf-success-icon {
    font-size: 56px;
    width: 80px;
    height: 80px;
    background: #2ecc71;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.apsf-success-message h2 {
    background: none !important;
    padding: 0 !important;
    margin: 0 0 15px 0 !important;
    font-size: 24px !important;
    color: #ffffff !important;
}

.apsf-success-message h2::after {
    display: none;
}

.apsf-success-message p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.85);
}

.apsf-contact-note {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 6px;
    margin: 25px 0;
}

.apsf-contact-info {
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.6;
}

.apsf-contact-info a {
    color: #f39c12;
    text-decoration: none;
    font-weight: 500;
}

.apsf-reference {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 20px;
    color: #ffffff;
    font-family: monospace;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.apsf-success-message {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .apsf-container {
        margin: 20px;
    }
    
    .apsf-container h2 {
        padding: 25px 25px 20px 25px !important;
        font-size: 22px !important;
    }
    
    .apsf-form {
        padding: 15px 25px 25px 25px;
    }
    
    .apsf-description {
        padding: 0 25px;
    }
}

@media (max-width: 480px) {
    .apsf-container {
        margin: 15px;
    }
    
    .apsf-container h2 {
        padding: 20px 20px 18px 20px !important;
        font-size: 20px !important;
    }
    
    .apsf-form {
        padding: 10px 20px 20px 20px;
    }
    
    .part-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .add-part-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

