/* エントリーフォーム専用スタイル */

/* ファイルアップロードエリア */
.file-upload-area {
    border: 2px dashed #d1d1d1;
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    background-color: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.file-upload-area:hover {
    border-color: #2c7be5;
    background-color: #f0f7ff;
}

.file-upload-area.drag-active {
    border-color: #2c7be5;
    background-color: #e3f2fd;
    transform: scale(1.02);
}

.file-upload-area.border-danger {
    border-color: #dc3545 !important;
}

.file-upload-area label {
    cursor: pointer;
}

.file-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 168px;
}

/* 必須ラベル */
.hissu::after {
    content: "*";
    color: #ffc107;
    margin-left: 0.25rem;
}

/* インラインフォーム要素 */
.form-group .input__inline {
    display: inline-block;
    width: auto;
}

/* 確認画面テーブル */
.confirm-section .table th {
    width: 30%;
    vertical-align: middle;
}

/* 送信中オーバーレイ */
.submitting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.submitting-overlay .spinner-content {
    text-align: center;
}

/* テキストサイズ */
.font-size-80 {
    font-size: 0.8rem;
}

.text-mini {
    font-size: 0.75rem;
}

/* フォーム入力欄を大きく */
.form__entry .form-control {
    font-size: 1rem;
    padding: 0.625rem 0.75rem;
    height: auto;
    min-height: calc(1.5em + 1.25rem + 2px);
}

.form__entry .form-control.input__inline {
    min-height: auto;
}

/* 確認画面へボタン */
.btn-round {
    border-radius: 4px;
    padding: 0.75rem 2.5rem;
}

/* レスポンシブ */
@media (max-width: 576px) {
    .file-upload-area {
        min-height: 160px;
        padding: 1.5rem 0.5rem;
    }

    .confirm-section .table th {
        width: 40%;
    }

    /* モバイルではインライン入力欄を適切な幅に */
    .form-group .input__inline {
        display: inline-block;
        min-width: 60px;
    }

    /* 郵便番号 */
    .form-group input[name*="_zip1"] {
        width: 70px;
    }
    .form-group input[name*="_zip2"] {
        width: 85px;
    }

    /* 電話番号 */
    .form-group input[name*="_1"][type="tel"],
    .form-group input[name*="_2"][type="tel"],
    .form-group input[name*="_3"][type="tel"] {
        width: 75px;
    }

    /* 生年月日・入社可能時期の年 */
    .form-group input[name*="_y"] {
        width: 80px;
    }

    /* 生年月日・入社可能時期のselect */
    .form-group select.input__inline {
        width: 70px;
    }

    /* 年収・希望年収の入力欄 */
    .form-group input[name*="3692817"],
    .form-group input[name*="3692818"],
    .form-group input[name*="3692819"],
    .form-group input[name*="3692820"] {
        width: 120px;
    }

    /* 通常の入力欄はフル幅 */
    .form__entry .form-control:not(.input__inline) {
        width: 100%;
    }

    /* ラベル列とフォーム列をフル幅に */
    .form__entry .col-sm-4 {
        margin-bottom: 0.25rem;
    }
}
