/* Prestige Labor Solutions - Freelancer Application Form */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #1a1a1a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #000;
    border-radius: 8px;
}

header h1 {
    color: #f39c12;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    color: #ccc;
    font-size: 1.2rem;
}

/* Form Styles */
.elementor-form {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    color: #fff;
}

.elementor-form-fields-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Field Groups */
.elementor-field-group {
    margin-bottom: 10px;
}

.elementor-col-100 {
    width: 100%;
}

.elementor-col-50 {
    width: calc(50% - 10px);
}

.elementor-col-33 {
    width: calc(33.333% - 14px);
}

.elementor-col-20 {
    width: calc(20% - 16px);
}

/* Labels */
.elementor-field-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

/* Input Fields */
.elementor-field {
    width: 100%;
    padding: 6px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.elementor-field:focus {
    outline: none;
    border-color: #f39c12;
    background-color: rgba(255, 255, 255, 0.15);
}

.elementor-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Textarea */
textarea.elementor-field {
    resize: vertical;
    min-height: 70px;
}

/* Checkbox and Radio Groups */
.elementor-field-subgroup {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.elementor-field-subgroup.elementor-subgroup-inline {
    flex-direction: row;
}

.elementor-field-option {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 5px;
}

.elementor-field-option input[type="checkbox"],
.elementor-field-option input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.elementor-field-option label {
    cursor: pointer;
    color: #fff;
    font-size: 14px;
}

/* File Upload */
.elementor-upload-field {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.elementor-upload-field:hover {
    border-color: #f39c12;
}

/* HTML Sections */
.elementor-field-type-html hr {
    margin: 15px 0 10px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.elementor-field-type-html h2 {
    color: #f39c12;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

/* Submit Button */
.e-form__buttons {
    margin-top: 15px;
    text-align: center;
}

.elementor-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #f39c12;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.elementor-button:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.elementor-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Messages */
.message {
    text-align: center;
    padding: 25px;
    background-color: #2a2a2a;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.success-message {
    border: 2px solid #27ae60;
    margin: 20px auto;
    max-width: 600px;
}

.success-message h2 {
    color: #27ae60;
    margin-bottom: 15px;
    font-size: 2rem;
}

.success-message p {
    color: #ddd;
    margin-bottom: 15px;
    line-height: 1.6;
}

.success-message .elementor-button {
    margin-top: 25px;
    background-color: #27ae60;
    color: #fff;
    padding: 15px 30px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.success-message .elementor-button:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* Success Icon */
.success-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 50px;
    color: #27ae60;
    background-color: rgba(39, 174, 96, 0.1);
    border: 3px solid #27ae60;
    border-radius: 50%;
    margin-bottom: 20px;
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.error-message h2 {
    color: #e74c3c;
    margin-bottom: 15px;
}

.error-message .elementor-button {
    margin-top: 20px;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid transparent;
    border-top-color: #f39c12;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .elementor-col-50,
    .elementor-col-33,
    .elementor-col-20 {
        width: 100%;
    }
    
    .elementor-form {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .elementor-field-subgroup {
        flex-direction: column;
    }
    
    .elementor-field-option {
        margin-right: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .elementor-form {
        padding: 15px;
    }
}

/* Required Field Indicator */
.elementor-field-required .elementor-field-label::after {
    content: ' *';
    color: #f39c12;
}

/* Error States */
.field-error {
    border-color: #e74c3c !important;
}

.error-text {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* Documentation Section */
.document-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.document-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: rgba(243, 156, 18, 0.1);
    border: 1px solid #f39c12;
    border-radius: 4px;
    color: #f39c12;
    text-decoration: none;
    transition: all 0.3s ease;
}

.document-link:hover {
    background-color: rgba(243, 156, 18, 0.2);
    transform: translateX(5px);
}

/* Required Documents Subsections */
.mandatory-notice {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    color: #f39c12;
    font-weight: 600;
}

.document-subsection {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.document-subsection:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(243, 156, 18, 0.3);
}

.document-subsection h3 {
    color: #f39c12;
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 2px solid rgba(243, 156, 18, 0.2);
    padding-bottom: 10px;
}

.subsection-content {
    margin-top: 15px;
}

.upload-section {
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.upload-section .form-text {
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 5px;
}

.agreement-signature {
    margin-top: 15px;
}

.signature-notice {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.95rem;
}

.signature-fields {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.signature-field {
    flex: 1;
    min-width: 250px;
}

.subsection-description {
    color: #ccc;
    font-size: 0.95rem;
    margin-top: 10px;
    font-style: italic;
}

/* Specific subsection colors */
.tax-information {
    border-color: rgba(231, 76, 60, 0.3);
}

.tax-information:hover {
    border-color: rgba(231, 76, 60, 0.5);
}

.contractor-agreement {
    border-color: rgba(52, 152, 219, 0.3);
}

.contractor-agreement:hover {
    border-color: rgba(52, 152, 219, 0.5);
}

.invoice-template {
    border-color: rgba(46, 204, 113, 0.3);
}

.invoice-template:hover {
    border-color: rgba(46, 204, 113, 0.5);
}