#yokotake-contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.contact-info {
    border-top: 2px solid #ddd;
    padding-top: 20px;
    margin-top: 20px;
}

.contact-info h3 {
    margin-bottom: 15px;
}

.contact-info input,
.contact-info textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.submit-button {
    background: var(--main-accent-color1, #8E7F59);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    margin-left: auto;
    display: block;
}

.submit-button:hover {
    background: var(--main-accent-color2, #BDAC82);
}

#form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 確認画面のスタイル */
#confirmation-screen {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

#confirmation-screen h2 {
    margin-bottom: 20px;
    color: #333;
}

.confirmation-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.confirmation-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0073aa;
}

.confirmation-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
}

.confirmation-item .label {
    font-weight: bold;
    min-width: 80px;
}

.confirmation-item .value {
    flex: 1;
}

.confirmation-buttons {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confirmation-buttons .button {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* 確認画面のボタンはお見積もりフォームと同じグレー基調に統一 */
#yokotake-contact-form .estimateForm_controlButtons button[type="submit"] {
    background: var(--main-accent-color1, #8E7F59) !important;
    color: #fff !important;
    border: none !important;
}

#yokotake-contact-form .estimateForm_controlButtons button[type="button"] {
    background: var(--bg-light-color, #FAF7F4) !important;
    color: inherit !important;
    border: none !important;
}

#yokotake-contact-form .estimateForm_controlButtons button[type="submit"]:hover,
#yokotake-contact-form .estimateForm_controlButtons button[type="button"]:hover {
    background: var(--main-accent-color2, #BDAC82) !important;
    color: #fff !important;
}


.contact-confirmation {
    margin-top: 20px;
}

.contact-confirmation .confirmation-item {
    flex-direction: column;
    gap: 5px;
}

.contact-confirmation .label {
    min-width: auto;
    font-size: 14px;
    color: #666;
}

/* バリデーションエラーのスタイル */
.validation-error {
    color: #d63384;
    font-size: 12px;
    margin-top: 5px;
    font-weight: bold;
}

.error-border {
    border-color: #d63384 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 0.2rem rgba(214, 51, 132, 0.25) !important;
}

.contact-info-confirm {
    border-top: 2px solid #ddd;
    padding-top: 20px;
    margin-top: 20px;
}

.contact-info-confirm h3 {
    margin-bottom: 15px;
}

.contact-info-confirm input,
.contact-info-confirm textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background: #f9f9f9;
}

/* 管理画面用のスタイル */
.search-form {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.search-form .form-table {
    margin: 0;
}

.search-form .form-table td {
    padding: 5px 10px 5px 0;
}

.search-form label {
    font-weight: bold;
}

.delete-contact {
    color: #a00 !important;
    text-decoration: none;
    cursor: pointer;
}

.delete-contact:hover {
    color: #dc3232 !important;
}

/* ページングスタイル */
.tablenav {
    margin: 20px 0;
    padding: 0;
}

.tablenav-pages {
    float: right;
    text-align: right;
}

.tablenav-pages .button {
    margin-left: 2px;
    padding: 3px 8px;
    font-size: 12px;
}

.displaying-num {
    margin-right: 10px;
    font-style: italic;
}

.paging-input {
    margin: 0 5px;
}

.tablenav-paging-text {
    font-weight: bold;
}

/* ご用件のラジオボタンリスト（見積もりフォームの支払い方法と同じスタイルを使用） */
.estimateForm_paymentMethodList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.estimateForm_paymentMethodList li {
    margin-bottom: 10px;
}

.estimateForm_paymentMethodList label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.estimateForm_paymentMethodList input[type="radio"] {
    margin-right: 8px;
}

/* URLフィールドを含むすべての入力フィールドにスタイルを適用 */
.estimateForm_customerInputGroup input[type="text"],
.estimateForm_customerInputGroup input[type="email"],
.estimateForm_customerInputGroup input[type="url"],
.estimateForm_customerInputGroup input[type="tel"],
.estimateForm_customerInputGroup textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    display: block;
    color: inherit;
}

/* プレースホルダーの色を統一 */
.estimateForm_customerInputGroup input[type="text"]::placeholder,
.estimateForm_customerInputGroup input[type="email"]::placeholder,
.estimateForm_customerInputGroup input[type="url"]::placeholder,
.estimateForm_customerInputGroup input[type="tel"]::placeholder,
.estimateForm_customerInputGroup textarea::placeholder {
    color: #999 !important;
    opacity: 1;
}

/* URLフィールドに特に明示的にスタイルを適用 */
.estimateForm_customerInputGroup input[type="url"] {
    border: 1px solid #ddd !important;
    background-color: #fff !important;
    color: inherit !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
