/* Hero Section */
.hero {
    background-color: #0f172a; /* slate-900 */
    color: #ffffff;
    height: 40vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

/* Container */
.hero-container {
    max-width: 70rem; /* ~max-w-7xl */
    margin: 0 auto;
    padding: 0 1rem;
}

.page-hero {
    position: relative;
    background-color: #0f172a;
    color: #fff;
    height: 40vh;
    display: flex;
    align-items: center;
}

.page-hero .container {
    max-width: 70rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: left;
}

/* Title */
.hero-title {
    font-size: 3rem; /* slightly smaller than 5xl */
    font-weight: bold;
    margin-bottom: 2rem;
}

/* Text */
.hero-text {
    font-size: 1.2rem; /* slightly smaller than text-xl */
    line-height: 1.6;
    color: #cbd5e1; /* slate-400 */
    max-width: 70rem;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem; /* md:text-6xl → reduced */
    }
    .hero-text {
        font-size: 1.125rem; /* ~18px */
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem; /* larger screens */
    }
    .hero-text {
        font-size: 1.18rem; /* ~20px */
    }
}

/* Section */
.openings {
    background-color: #f8fafc; /* slate-50 */
    padding: 6rem 0; /* py-24 */
}

.openings-container {
    max-width: 68rem; /* ~max-w-7xl */
    margin: 0 auto;
    padding: 0 1rem;
}

.openings-title {
    font-size: 1.6rem; /* slightly smaller than text-3xl */
    font-weight: bold;
    margin-bottom: 3rem;
    text-align: left;
}

/* Grid */
.openings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Job Card */
.job-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 2rem;
    border: 1px solid #e2e8f0; /* slate-200 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .job-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Job Info */
.job-info {
    flex-grow: 1;
}

.job-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.65rem; /* smaller than text-[10px] */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.tag-blue {
    background-color: #eff6ff; /* blue-50 */
    color: #2563eb; /* blue-600 */
    font-size: 0.6rem;
}

.tag-green {
    background-color: #ecfdf5; /* green-50 */
    color: #16a34a; /* green-600 */
    font-size: 0.6rem;
}

.job-title {
    font-size: 1.18rem; /* smaller than text-2xl */
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.job-location {
    font-size: 0.78rem;
    color: #64748b; /* slate-500 */
}

.job-desc {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #475569; /* slate-600 */
    max-width: 40rem;
}

/* Button */
.apply-btn {
    background-color: #0f172a; /* slate-900 */
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.apply-btn:hover {
    background-color: #2563eb; /* blue-600 */
}

.apply-btn:active {
    transform: scale(0.95);
}

.modal {
    display: none;
    position: fixed;
    inset: 0; /* replaces top,left,width,height */
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
}

.modal-content {
    position: relative;
    background-color: #fff;
    padding: 30px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    margin-top: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.modal-header h2 span {
    color: #000;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #000;
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    color: #34495e;
}

.form-scroll {
    max-height: 45vh; /* adjust as needed */
    overflow-y: auto;
    padding-right: 10px; /* avoid scrollbar overlap */
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ecf0f1;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.step.active .step-number {
    background-color: #eff6ff;
    color: #2563eb;
}

.step.completed .step-number {
    background-color: #27ae60;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step.completed .step-number span {
    display: none; /* Hide the number */
}

.step.completed .step-number i {
    display: inline-block !important;
    font-size: 16px;
}

.step-label {
    font-size: 14px;
    color: #7f8c8d;
}

.step.active .step-label {
    color: #2563eb;
    font-weight: 500;
}

.step.completed .step-label {
    color: #27ae60;
}

/* Step Content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.step-content .section-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
}

.step-content .section-subtitle {
    font-size: 14px;
    color: black;
    margin: 0 0 25px 0;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 30px; /* This creates the gap between the two fields */
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1; /* Makes both fields equal width */
    margin-bottom: 0; /* Remove bottom margin since parent handles it */
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dce4ec;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
}

/* Responsive - stack on mobile */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.field-hint {
    font-size: 12px;
    color: #95a5a6;
    margin: -5px 0 10px 0;
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.choose-file-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ecf0f1;
    color: #2c3e50;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.choose-file-btn:hover {
    background-color: #dde4e6;
}

.file-name {
    font-size: 14px;
    color: #7f8c8d;
}

/* Form Row */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.half {
    flex: 1;
    margin-bottom: 0;
}

/* Checkbox */
.checkbox-group {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-text {
    color: #2c3e50;
}

/* Character Count */
.character-count {
    text-align: right;
    font-size: 12px;
    color: #95a5a6;
    margin-top: 5px;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
}

.next-btn,
.submit-btn {
    padding: 12px 30px;
    background-color: #eff6ff;
    color: #2563eb;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.next-btn:hover,
.submit-btn:hover {
    background-color: #2563eb;
    color: white;
}

.back-btn {
    padding: 12px 30px;
    background-color: #ecf0f1;
    color: #2c3e50;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: #dde4e6;
}

.required-star {
    color: red;
    margin-left: 5px;
}

.error-message {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 5px;
}

.input-error {
    border-color: #e74c3c !important;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-group.half {
        margin-bottom: 0;
    }

    .step-label {
        font-size: 12px;
    }
}

/* Pre-filled values styling */
input[value] {
    color: #2c3e50;
}

/* Section */
.career-section {
    padding: 6rem 0;
    background-color: #f8fafc; /* slate-50 */
    text-align: center;
    border-top: 1px solid #0f172a; /* slate-900 */
    font-family: Arial, sans-serif;
}

/* Container */
.career-container {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Title */
.career-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0f172a; /* slate-900 */
    margin-bottom: 2rem;
    font-style: italic;
    font-family: Georgia, serif; /* brand font style */
}

@media (min-width: 768px) {
    .career-title {
        font-size: 1.5rem;
    }
}

/* Button */
.career-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #0f172a; /* slate-900 */
    color: #ffffff;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.career-button:hover {
    background-color: #2563eb; /* blue-600 */
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}
