* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #fff;
    line-height: 1.5;
}

#form_body{ background-image : url(../imgs/bg_section08.jpg);}

.container {
    width : 70%;
    margin: 100px auto;
    
}

.form-card {
    background-color : #0000006B;
    border-radius: 8px;
    padding: 100px;
    color : #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.header {
    margin-bottom: 30px;
}

.form-card .title {
    font-size: 2.6em;
    color : #fff;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.form-card .subtitle {
    color : #fff;
    font-size: 1.2em;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-col {
    flex: 1;
    min-width: 250px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

/* 에러 상태 스타일 */
input.error,
textarea.error {
    border-color: #ff4444;
    background-color: #fff8f8;
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
    position: absolute;
    bottom: -18px;
    left: 0;
}

.error-message.show {
    display: block;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-container {
    margin-top: 30px;
    text-align: right;
}

.file-select-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-btn {
    background-color: #13afbe;
    color: #fff;
    border: none;
    padding: 12px 50px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: rgba(19,175,190,0.6);
    color : #fff;
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* placeholder 스타일링 */
::placeholder {
    color: #999;
}

/* 파일 업로드 섹션 스타일링 */
.file-upload {
    margin-top: 20px;
    padding : 5px;
    background-color: #fff8f8;
}

.file-upload-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.file-input-container {
    flex: 1;
}

.file-input {
    width: 100%;
}

.file-select-btn {
    white-space: nowrap;
}

.file-notice {
    font-size: 12px;
    color: #666;
}

.file-error {
    color: #ff4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.file-error.show {
    display: block;
}

/* 미디어 쿼리 */
@media (max-width: 1024px) {
    .container {
        padding: 10px;
        width : 100%; margin : 60px auto;
    }
}

@media (max-width: 768px) {

    .form-card .title{font-size : 1.6em;}
    .form-card .subtitle{font-size : 1.0em;}
    
    .form-card {
        padding: 50px;
    }
    .form-card .title{font-size : 1.6em;}
    .form-card .subtitle{font-size : 1.0em;}

    .file-upload-container {
        flex-direction: column;
        align-items: stretch;
    }

    .file-select-btn {
        width: 100%;
    }

    .file-notice {
        text-align: center;
    }
}

@media (max-width: 500px) {
    .form-card {
        padding: 20px;
    }
}