/* CSS for Spontaneous Application Form (Candidature Spontanée) */
/* Compatible with input3.html and script3.js */

@import url('https://fonts.googleapis.com/css2?family=Karla:wght@300;400;500;600;700&family=El+Messiri:wght@300;400;500;600;700&display=swap');

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Karla', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    min-height: 100vh;
}

/* Introductory Section */
.introductory {
    background: #0a2834;
    padding: 60px 0;
    color: white;
    text-align: center;
}

.introductory .container {
    max-width: 800px;
}

.page-title {
    font-family: 'El Messiri', sans-serif;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Form Container */
.row {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.awsm-job-form-inner {
    background: white;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: unset;
}

.awsm-job-form-inner h2 {
    font-size: 28px;
    font-weight: 600;
    color: #0a2834;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Karla', sans-serif;
}

/* Form Groups */
.awsm-job-form-group {
    margin-bottom: 25px;
}

.awsm-job-form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-family: 'Karla', sans-serif;
}

.awsm-job-form-error {
    color: #e74c3c;
    font-weight: bold;
}

/* Form Fields */
.awsm-job-form-field {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Karla', sans-serif;
    transition: all 0.3s ease;
    background-color: #fff;
}

.awsm-job-form-field:focus {
    outline: none;
    border-color: #0a2834;
    box-shadow: 0 0 0 3px rgba(10, 40, 52, 0.1);
}

.awsm-job-form-field::placeholder {
    color: #7f8c8d;
}

/* Specific Field Types */
.awsm-job-form-textarea-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Karla', sans-serif;
}

.awsm-job-form-file-group input[type="file"] {
    padding: 10px;
    border: 2px dashed #e1e8ed;
    border-radius: 8px;
    background-color: #f8f9fa;
}

/* Select Styling */
.awsm-selectric-wrapper {
    position: relative;
}

.awsm-selectric {
    width: 100%;
    padding: 14px 16px;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.awsm-selectric:hover {
    border-color: #0a2834;
}

.awsm-selectric-arrow-drop {
    font-size: 12px;
    color: #7f8c8d;
}

/* File Upload Styling */
.awsm-form-drag-and-drop-file-control {
    border: 2px dashed #e1e8ed;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.awsm-form-drag-and-drop-file-control:hover {
    border-color: #0a2834;
    background-color: #fff;
}

.dz-message {
    margin-bottom: 10px;
}

.awsm-form-drag-and-drop-file-title {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 5px;
}

.awsm-form-drag-and-drop-file-description {
    font-size: 14px;
    color: #7f8c8d;
}

.dz-file-preview {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.dz-progress {
    background: #ecf0f1;
    border-radius: 3px;
    height: 6px;
    margin: 10px 0;
    overflow: hidden;
}

.dz-upload {
    background: linear-gradient(135deg, #3498db, #2980b9);
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Inline Groups (Checkboxes) */
.awsm-job-form-inline-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.awsm-job-form-inline-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    transform: scale(1.1);
}

.awsm-job-form-inline-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

/* Submit Button */
.awsm-application-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #0a2834, #1a4a5c);
    color: white;
    border: none;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Karla', sans-serif;
    margin-top: 20px;
}

.awsm-application-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 40, 52, 0.3);
}

.awsm-application-submit-btn:active {
    transform: translateY(0);
}

/* reCAPTCHA Styling */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

/* Form Message Styling */
.awsm-application-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.awsm-application-message.awsm-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.awsm-application-message.awsm-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Success/Fail Page Styles */
.hero-background {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0d2b3a 0%, #1a4a5c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-background.fail {
    background: linear-gradient(135deg, #0d2b3a 0%, #1a4a5c 100%);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 600px;
    width: 100%;
}

.message-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

.success-icon::before {
    content: "✓";
    font-weight: bold;
}

.fail .success-icon {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.fail .success-icon::before {
    content: "✗";
}

.main-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: 1px;
    color: white;
    font-family: 'El Messiri', sans-serif;
}

.main-message {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    font-family: 'Karla', sans-serif;
}

.secondary-message {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    font-family: 'Karla', sans-serif;
}

.btn-return {
    display: inline-block;
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    font-family: 'Karla', sans-serif;
}

.btn-return:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* Small Text */
small {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 8px;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }
    
    .awsm-job-form-inner {
        padding: 30px 25px;
        margin: 0 10px;
    }
    
    .awsm-job-form-inner h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .awsm-job-form-field {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .message-box {
        padding: 40px 30px;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .main-message {
        font-size: 16px;
    }
    
    .secondary-message {
        font-size: 14px;
    }
    
    .btn-return {
        padding: 14px 35px;
        font-size: 15px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .introductory {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .row {
        padding: 40px 0;
    }
    
    .awsm-job-form-inner {
        padding: 25px 20px;
    }
    
    .awsm-job-form-inner h2 {
        font-size: 22px;
    }
    
    .hero-background {
        padding: 15px;
    }
    
    .message-box {
        padding: 30px 20px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .main-message {
        font-size: 15px;
    }
}

.awsm-job-form-group.awsm-job-inline-group {
    display: block;
}
.awsm-job-form-group.awsm-job-inline-group > * {
    width: auto;
}