.agreement-container {
    margin: 100px auto 0;
    background-color: #2a2a2a;
    padding: 25px;
    border-radius: 10px;
    width: 450px; /* 아코디언에 맞게 너비 조정 */
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.agreement-container h2 {
    color: #ffffff;
    margin-bottom: 25px;
}

/* --- 기존 버튼 스타일 (아코디언 버튼과는 별개) --- */
.agreement-container button { /* 모든 버튼에 적용될 수 있으니 주의 */
    width: 100%;
    padding: 12px;
    background-color: #ffffff;
    color: black;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px; /* 아코디언 아이템 간격에 맞춰 조정 */
    transition: background-color 0.3s ease;
}

.agreement-container button:hover:not(:disabled) {
    background-color: #f1f1f1;
}

.agreement-container button:disabled {
    background-color: #555;
    color: #bbb;
    cursor: not-allowed;
}


/* --- 아코디언 관련 스타일 (이전에 제가 드렸던 내용) --- */
/* 아코디언 헤더 및 버튼 스타일 조정 */
.accordion-header .accordion-button {
    background-color: transparent;
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 12px 0;
    box-shadow: none;
    border-bottom: 1px solid #666;
    border-radius: 0;
    text-align: left;
}

.accordion-header .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: #fff;
    box-shadow: none;
}

.accordion-header .accordion-button::after {
    filter: invert(1); /* 아이콘 색상 반전 (흰색으로) */
}

/* 아코디언 바디 스타일 */
.accordion-body {
    background-color: transparent;
    color: #eee;
    padding: 15px 0;
    border: none;
}

/* 아코디언 아이템 간 간격 */
.accordion-item {
    margin-bottom: 10px;
    border: none;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
}

/* 아코디언 바디 안의 텍스트 에어리어 스타일 */
.accordion-body .terms-content-textarea {
    background-color: #2f2f2f;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 10px;
    width: 100%;
    height: 180px;
    resize: vertical;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* 아코디언 바디 안의 체크박스 레이블 스타일 */
.accordion-body label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
}

.accordion-body input[type="checkbox"] {
    margin-right: 8px;
    min-width: 16px;
    min-height: 16px;
    cursor: pointer;
}

.accordion-header .accordion-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 576px) {
  .agreement-container {
    width: 90%;
    padding: 20px;
    margin: 60px auto 0;
  }

  .accordion-body .terms-content-textarea {
    height: 150px;
    font-size: 12px;
  }

  .accordion-body label {
    font-size: 13px;
    flex-wrap: wrap;
  }

  .accordion-header .accordion-button {
    font-size: 14px;
    padding: 10px 0;
  }

  .agreement-container button {
    font-size: 14px;
    padding: 10px;
  }
}

