/* css/form.css */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #495057;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.help-text {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

.form-terms {
    display: flex;
    align-items: flex-start; /* チェックボックスとテキストの配置調整 */
    margin-bottom: 25px;
    font-size: 15px;
}

.form-terms input[type="checkbox"] {
    margin-top: 4px; /* テキストのベースラインに合わせる */
    margin-right: 10px;
    transform: scale(1.2); /* チェックボックスを少し大きく */
    cursor: pointer;
}

.form-terms label {
    font-weight: normal; /* チェックボックスのラベルは太字にしない */
    color: #333;
}

.register-button, .login-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-top: 15px;
}

/* form.css */
.contact-form-container {
    max-width: 700px; /* フォームの最大幅を設定 */
    margin: 40px auto 0 auto; /* 中央寄せ & 上部のマージン */
    padding: 40px; /* コンテナ内のパディング */
    background-color: var(--light-bg); /* フォームの背景色を少し変える */
    border-radius: 8px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05); /* 内側に軽い影 */
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr; /* 1列レイアウト */
    gap: 25px; /* 各フォームグループ間のスペース */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 25px;
        margin: 20px auto 0 auto;
    }
    .contact-section {
        padding: 60px 0;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

.form-group select {
    width: 100%;
    padding: 12px 15px; /* Increase padding for better visual weight */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    appearance: none; /* Remove default arrow in some browsers */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    /* Add custom arrow for consistent look */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M208.5%2099.5c-4.4-4.4-11.4-4.4-15.8%200l-64%2064-64-64c-4.4-4.4-11.4-4.4-15.8%200s-4.4%2011.4%200%2015.8l72%2072c4.4%204.4%2011.4%204.4%2015.8%200l72-72c4.4-4.4%204.4-11.4%200-15.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.form-group select:focus {
    border-color: #007bff; /* Highlight on focus */
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    width: 100%;
    padding: 12px 15px; /* Consistent padding with inputs */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    resize: vertical; /* Allow vertical resizing, or 'none' if you want a fixed size */
    min-height: 150px; /* Ensure a good minimum height */
    line-height: 1.5; /* Improve readability of text */
}

.form-group textarea:focus {
    border-color: #007bff; /* Highlight on focus */
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-group {
    margin-bottom: 20px; /* Ensure consistent spacing between all form fields */
}

.form-group label {
    display: block; /* Ensures label is on its own line */
    margin-bottom: 8px; /* Space between label and input */
    font-weight: 500; /* Make labels slightly bolder */
    color: #333;
}

.required-badge {
    background-color: #dc3545; /* Red background for required badge */
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.75em;
    margin-left: 8px;
    vertical-align: middle;
}

.form-terms {
    display: flex; /* Use flexbox for easy alignment */
    align-items: center; /* Vertically align checkbox and text */
    margin-top: 30px; /* More space before terms */
    margin-bottom: 30px; /* More space before submit button */
}

.form-terms input[type="checkbox"] {
    margin-right: 10px; /* Space between checkbox and text */
    transform: scale(1.2); /* Slightly larger checkbox */
}

.form-terms label a {
    color: #007bff; /* Use your primary color for the link */
    text-decoration: none;
    font-weight: 500;
}

.form-terms label a:hover {
    text-decoration: underline;
}

.contact-phone-info {
    text-align: center; /* Center the phone number text */
    margin-bottom: 30px; /* Add some space below it */
    font-size: 1.1em;
    color: #333;
}

.contact-phone-info strong {
    color: #007bff; /* Highlight the phone number with your primary color */
    font-size: 1.2em; /* Make the number slightly larger */
}

.contact-phone-info .fas {
    margin-right: 8px; /* Space between icon and text */
    color: #007bff; /* Match icon color to the number */
}
