.bidmedi-regist-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    font-family: 'Noto Sans KR', sans-serif;
}

.section-title h3 {
    font-size: 18px;
    color: #5db0b6;
    border-bottom: 2px solid #5db0b6;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 700;
}

.mt-40 { margin-top: 40px; }
.mt-10 { margin-top: 10px; }

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-group label {
    width: 120px;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    flex-grow: 1;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 10px;
    font-size: 14px;
    width: calc(100% - 120px);
    box-sizing: border-box;
}

/* 주소 및 파일 버튼 스타일 */
.input-with-btn, .file-input-wrapper {
    display: flex;
    flex-grow: 1;
    width: calc(100% - 120px);
    gap: 10px;
}

.address-group input#bidmedi_addr_detail {
    margin-left: 120px; /* 라벨 너비만큼 밀기 */
    width: calc(100% - 120px);
}

.btn-search-addr, .btn-file-select {
    background: #6ccad0;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0 20px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    height: 45px;
    line-height: 45px;
    text-align: center;
    display: inline-block;
}

/* 파일 인풋 커스텀 */
.file-input-wrapper { position: relative; }
.file-input-wrapper input[type="file"] {
    display: none;
}
.file-name-display {
    flex-grow: 1;
    background: #f9f9f9;
}

/* 모바일용 버튼 크기 고정 */
.btn-search-addr, .btn-file-select {
    flex-shrink: 0;
}

/* 제출 버튼 영역 */
.submit-area {
    margin-top: 40px;
    text-align: center;
    /* 레이아웃 강제 수정 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-submit {
    width: 200px;
    height: 50px;
    background: #5db0b6;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    /* 블록 요소 강제 */
    display: block; 
    max-width: 100%;
}

.terms-text {
    font-size: 12px;
    color: #888;
    margin-top: 20px;
    line-height: 1.5;
    /* 텍스트 줄바꿈 강제 */
    word-break: keep-all;
    white-space: normal;
    display: block;
    width: 100%;
    max-width: 100%;
}

/* ====================
   모달 (팝업) 스타일
   ==================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); /* 배경 어둡게 */
    z-index: 9999;
    display: none; /* 기본 숨김 */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 480px;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-top: 8px solid #5eb1b7; /* 상단 파란 라인 */
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 40px 30px 50px 30px;
}

.modal-body h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.4;
    font-weight: 700;
}

.modal-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 35px;
    word-break: keep-all;
}

.last-msg {
    margin-top: 20px;
    color: #333;
    font-weight: 500;
}

.btn-modal-close {
    background: #6ccad0;
    color: white;
    border: none;
    padding: 12px 60px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* 모바일 대응 */
@media (max-width: 600px) {
    .form-group { flex-direction: column; align-items: flex-start; }
    .form-group label { width: 100%; margin-bottom: 5px; }
    .form-group input[type="text"], .input-with-btn, .file-input-wrapper { width: 100%; }
    .address-group input#bidmedi_addr_detail { margin-left: 0; width: 100%; }
}
