body {
    font-family: 'Pretendard', sans-serif;
    letter-spacing: -0.1px;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
}

.first-container {
    width: 90%;
    margin: auto;
    overflow: hidden;
    padding-bottom: 100px;
    margin-top: 20px;
}

.first-step {
    display: none;
}

.first-step.first-active {
    display: block;
}

.first-form-step {
    margin: 10px 0;
}

.first-form-step label {
    display: block;
    margin-bottom: 10px;
}

.required-label {
    background-color: #ccc;
    color: #333;
    margin-left: 5px;
    padding: 2px 4px;
    font-size: 0.75em;
    border-radius: 3px;
    display: inline-block;
    transition: all 0.3s ease;
}

.required-label.valid {
    background-color: darkred;
    color: white;
}

.first-form-step input, .first-form-step select, .first-form-step textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 0.9em;
    box-sizing: border-box;
}

.first-form-step input::placeholder, .first-form-step textarea::placeholder {
    color: #ccc;
}

.first-form-step textarea {
    resize: none;
    height: 100px;
    margin-bottom: 0px;
}

.first-form-step .checkbox-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.first-form-step .checkbox-label {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-right: 115px;
}

.first-form-step .checkbox-label input {
    margin-left: 10px;
    transform: scale(1.5);
    margin-bottom: 5px;
}

.first-form-step .checkbox-label.label-agree {
    min-width: 150px;
}

.bold-label {
    font-weight: bold;
}

.first-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    width: 14px;
    height: 14px;
    background-color: #555;
    border-radius: 50%;
    cursor: help;
}

.first-tooltip::after {
    content: "?";
    color: white;
    font-size: 10px;
}

.first-tooltip .first-tooltiptext {
    visibility: hidden;
    background-color: #808080;
    color: #ffffff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: fixed;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85em;
    font-weight: normal;
    line-height: 1.4;
    white-space: pre;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 모바일 및 태블릿 스타일 */
@media (max-width: 1023px) {
    .first-container {
        width: 90%;
    }
    .first-form-step .checkbox-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .first-form-step .checkbox-label {
        margin-top: -10px;
        margin-right: 20px;
        margin-bottom: 15px;
    }
    .first-form-step textarea {
        height: 80px !important;
        margin-bottom: 10px;
    }
    .first-form-step .first-input-group {
        display: flex;
        flex-direction: column;
    }
    .first-form-step .first-input-group .field-container {
        display: flex;
        flex-direction: column;
    }
    .first-form-step .first-input-group .field-container > div {
        width: 100%;
        margin-bottom: 15px;
    }
    .name-field { order: 1; }
    .phone-field { order: 2; }
    .email-field { order: 3; }
    .company-field { order: 4; }

    #namePhoneGroup, #companyEmailGroup {
        margin-bottom: 15px;
    }
}

/* PC 스타일 */
@media (min-width: 1024px) {
    .first-container {
        width: 1020px;
    }
    .first-form-step .first-input-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .first-form-step .first-input-group .field-container {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .first-form-step .first-input-group .field-container > div {
        width: 48%;
        margin-bottom: 10px;
    }
    #namePhoneGroup, #companyEmailGroup {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    #namePhoneGroup > div, #companyEmailGroup > div {
        width: 48%;
    }
}

/* 메시지 컨테이너 스타일 */
#firstMessageContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 25px;
    border-radius: 5px;
    display: none;
    z-index: 1000;
    white-space: nowrap;
    font-weight: bold;
    transition: opacity 0.3s ease-in-out;
}

#firstMessageContainer.message-error {
    background-color: #ff6b6b;
    color: white;
}

#firstMessageContainer.message-warning {
    background-color: #ffa502;
    color: white;
}

#firstMessageContainer.first-message-notification {
    background-color: #70a1ff;
    color: white;
}

#firstMessageContainer.message-success {
    background-color: #2ed573;
    color: white;
}

/* 새로운 공통 버튼 스타일 */
.common-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.back-button {
    background-color: #777777;
    color: white;
}

.back-button:hover {
    background-color: #555555;
}

.next-button {
    background-color: #0a2752;
    color: white;
}

.next-button:hover {
    background-color: #081d3e;
}

/* 기존 .navigation-buttons -> 수정: .info-navigation-buttons */
.info-navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 0 0 50px 0;
}

@media (max-width: 767px) {
    .info-navigation-buttons {
        padding: 0px;
    }

    .common-button {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* 새로 추가된 전화번호 인증 관련 스타일 */
.phone-field {
    display: flex;
    flex-direction: column;
}

.phone-input-container, .verification-container {
    display: flex;
    align-items: stretch;
}

#phone.first-phone-input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
    height: 38px;
    box-sizing: border-box;
}

.verify-button, .verification-button {
    padding: 0 15px;
    background-color: #0a2752;
    color: white;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9em;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    height: 38px;
    box-sizing: border-box;
}

.verify-complete-button {
    padding: 0 15px;
    background-color: #27b863;
    color: white;
    border: none;
    white-space: nowrap;
    font-size: 0.9em;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    height: 38px;
    box-sizing: border-box;
    cursor: default;
}

.verify-button {
    width: auto;
    min-width: 120px;
    padding: 0 10px;
}

.verification-container {
    margin-top: 5px;
}

.verification-input.first-verification-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #bbb;
    font-size: 0.9em;
    border-radius: 5px 0 0 5px;
    border-right: none;
    height: 38px;
    box-sizing: border-box;
}

/* 버튼에 호버 효과 추가 */
.verify-button:hover, .verification-button:hover {
    background-color: #081d3e;
}

/* 인증 완료 버튼에는 호버 효과 제거 */
.verify-complete-button:hover {
    background-color: #27b863;
}

/* 모바일 화면에서 버튼 스타일 조정 */
@media (max-width: 767px) {
    .verify-button, .verification-button, .verify-complete-button {
        font-size: 0.8em;
        padding: 0 8px;
    }
    
    .verify-button {
        min-width: 100px;
    }
}
