/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-break: keep-all;
    line-break: strict;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #111827;
}

/* Careers Detail */
.careers-detail {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 16px 32px 16px;
}

/* Global Reset for Lists in this page to match Tailwind (removes bullet points) */
.careers-detail ul, 
.careers-detail li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.careers-detail__container {
    display: flex;
    flex-direction: column;
}

/* Header */
.careers-detail__header {
    padding: 16px 0 48px 0; /* Reduced top padding further from 32px to 16px */
}

.careers-detail__header-content {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

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

.careers-detail__title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .careers-detail__title {
        margin-bottom: 0;
    }
}

.careers-detail__deadline {
    text-align: left;
}

@media (min-width: 768px) {
    .careers-detail__deadline {
        text-align: right;
    }
}

.careers-detail__deadline-badge {
    font-size: 1.125rem;
    font-weight: 500;
    color: #2563eb;
}

/* Main Content */
.careers-detail__main {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

@media (min-width: 768px) {
    .careers-detail__main {
        flex-direction: row;
    }
}

/* Sidebar */
.careers-detail__sidebar {
    width: 100%;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .careers-detail__sidebar {
        width: 224px;
        margin-bottom: 0;
    }
}

.sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    border: 2px solid #ecf1ff;
    border-radius: 12px;
    padding: 24px;
}

.sidebar-info__item {
    display: flex;
    flex-direction: column;
}

.sidebar-info__label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.sidebar-info__value {
    font-weight: 500;
    color: #111827;
}

/* Content Area */
.careers-detail__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Tabs */
.tabs {
    font-size: 1.25rem;
    display: flex;
    gap: 32px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

.tab {
    padding: 8px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    color: #6b7280;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.tab:hover {
    color: #374151;
}

.tab--active {
    border-bottom-color: #4e7be9;
    font-weight: 600;
    color: #111827;
}

/* Tab Content */
.tab-content {
    display: none;
}

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

/* Overview Section */
.overview-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.overview-section__item {
    display: flex;
    flex-direction: column;
}

.overview-section__heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.overview-section__content {
    white-space: pre-line;
    line-height: 1.75;
}

/* Apply Button */
.apply-button {
    display: block;
    margin: 16px auto 0;
    width: 100%;
    max-width: 512px;
    height: 80px;
    background-color: #4e7be9;
    color: #ffffff;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.apply-button:hover {
    opacity: 0.9;
}

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

/* Application Form */
.application-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-label {
    display: flex;
    flex-direction: column;
}

.form-label__text {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.form-input {
    margin-top: 4px;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #4e7be9;
}

.form-input.error {
    border-color: #ef4444;
}

.form-error {
    margin-top: 4px;
    font-size: 1rem;
    color: #fca5a5;
    display: none;
}

.form-error.show {
    display: block;
}

/* Privacy Consent */
.privacy-consent {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 12px 16px;
}

.privacy-consent__terms {
    margin: 0 0 12px;
    padding-left: 18px;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

.privacy-consent__check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    cursor: pointer;
}

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

.file-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.file-upload__label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.file-upload__label:hover {
    border-color: #9ca3af;
    background-color: #f9fafb;
}

.file-upload__label.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.file-upload__icon {
    width: 48px;
    height: 48px;
    color: #9ca3af;
    margin: 0 auto 8px;
}

.file-upload__text {
    font-weight: 500;
    color: #6366f1;
}

.file-upload__text:hover {
    color: #4f46e5;
}

.file-upload__hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 8px;
}

.file-upload__max {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 4px;
}

/* File List */
.file-list {
    margin-top: 16px;
}

.file-list__label {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.file-list__items {
    font-size: 0.875rem;
    color: #374151;
    background-color: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
    list-style: none;
}

.file-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.file-list__item:hover {
    background-color: #d1d5db;
}

.file-list__info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-list__name {
    font-weight: 500;
}

.file-list__size {
    color: #9ca3af;
}

.file-list__remove {
    color: #fca5a5;
    font-size: 1.125rem;
    font-weight: 700;
    margin-left: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.file-list__remove:hover {
    color: #dc2626;
}

/* Submit Button */
.submit-button {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 80px;
    background-color: #4e7be9;
    color: #ffffff;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.submit-button:hover {
    opacity: 0.9;
}

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

.submit-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Back Button */
.back-button__wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: #4b5563;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    background-color: #ffffff;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: #1f2937;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal.show {
    display: flex;
}

.modal__content {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 448px;
    width: 100%;
    margin: 0 16px;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.modal__icon {
    width: 64px;
    height: 64px;
    background-color: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.modal__check {
    width: 32px;
    height: 32px;
    color: #10b981;
}

.modal__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    text-align: center;
}

.modal__message {
    color: #4b5563;
    margin-bottom: 24px;
    white-space: pre-line;
    text-align: center;
}

.modal__button {
    width: 100%;
    background-color: #4e7be9;
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.modal__button:hover {
    opacity: 0.9;
}
