﻿.hc-form {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hc-form-title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
}

.hc-form-note {
    margin-bottom: 12px;
    font-size: 13px;
    color: #555;
}

.hc-required {
    color: #c0392b;
    font-weight: 700;
}

.hc-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.hc-modal.is-open {
    display: flex;
}

.hc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hc-modal-content {
    position: relative;
    background: #fff;
    width: min(560px, 92vw);
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.hc-modal-header h4 {
    margin: 0;
    font-size: 18px;
}

.hc-modal-close {
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

.hc-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
}

.hc-modal-body ul {
    padding-left: 18px;
}

.hc-modal-list {
    margin: 0;
    padding-left: 18px;
}

.hc-modal-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.hc-modal-actions {
    padding: 14px 20px 18px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
}

.hc-policy-link {
    background: none;
    border: none;
    padding: 0;
    color: #1b3c59;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.hc-policy-link:hover {
    color: #142d42;
}

.hc-form-row {
    margin-bottom: 12px;
}

.hc-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.hc-form input[type='text'],
.hc-form input[type='email'],
.hc-form input[type='password'],
.hc-form input[type='number'],
.hc-form select,
.hc-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.hc-form textarea {
    resize: vertical;
}

.hc-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
}

.hc-radio-label input[type='radio'] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hc-radio-ui {
    width: 16px;
    height: 16px;
    border: 1px solid #666;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    background: #fff;
}

.hc-radio-label input[type='radio']:checked + .hc-radio-ui {
    border-color: #1b3c59;
}

.hc-radio-label input[type='radio']:checked + .hc-radio-ui::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1b3c59;
    display: block;
    margin: 3px;
}

.hc-form-actions {
    margin-top: 16px;
}

.hc-btn {
    background: #1b3c59;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
}

.hc-btn:hover {
    background: #142d42;
}

.hc-btn-outline {
    background: #fff;
    color: #1b3c59;
    border: 1px solid #1b3c59;
}

.hc-btn-outline:hover {
    background: #f0f6fa;
}

.hc-form-actions-inline {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hc-form-actions-right {
    text-align: right;
}

.hc-mypage-form {
    margin: 12px 0 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hc-btn-left {
    margin-right: auto;
}

.hc-btn-right {
    margin-left: auto;
}

.hc-remember label {
    font-weight: 500;
}

.hc-alert {
    padding: 12px 14px;
    border-radius: 4px;
    background: #f3f3f3;
    margin-bottom: 16px;
}

.hc-alert a {
    text-decoration: underline;
}

.hc-alert-success {
    background: #e6f7e8;
    border: 1px solid #b7e2c0;
}

.hc-alert-error {
    background: #fdecea;
    border: 1px solid #f5b5ad;
}

.hc-alert-error ul {
    margin: 0;
    padding-left: 18px;
}

.hc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.hc-table th,
.hc-table td {
    border: 1px solid #ddd;
    padding: 10px;
    vertical-align: top;
}

.hc-table th {
    background: #f7f7f7;
    width: 170px;
    text-align: left;
}

.hc-table-form .hc-table {
    margin-top: 0;
}

.hc-inner-table {
    width: 100%;
    border-collapse: collapse;
}

.hc-inner-table th,
.hc-inner-table td {
    border: 1px solid #e1e1e1;
    padding: 8px;
    font-size: 13px;
}

.hc-inline {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.hc-radio-row {
    gap: 16px;
}

.hc-rrn-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hc-rrn-front {
    max-width: 140px;
}

.hc-rrn-back {
    max-width: 160px;
}

.hc-rrn-sep {
    color: #555;
}

.hc-rrn-note {
    margin-top: 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.hc-rrn-note p {
    margin: 0 0 4px;
}

.hc-shares-count {
    width: 140px;
    min-width: 140px;
    flex: 0 0 auto;
}

.hc-amount {
    max-width: 260px;
}

.hc-shares-amount {
    width: 280px;
    min-width: 260px;
    flex: 0 0 auto;
}

.hc-address-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.hc-address-main {
    flex: 1 1 260px;
    height: 38px;
}

.hc-address-detail {
    margin-top: 8px;
    height: 38px;
}

.hc-bank-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.hc-form .hc-bank-row select,
.hc-form .hc-bank-row input {
    width: auto;
}

.hc-form .hc-bank-row select {
    min-width: 160px;
}

.hc-bank-holder {
    flex: 1 1 200px;
    min-width: 180px;
}

.hc-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.hc-info-box {
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 16px;
    margin-bottom: 16px;
}

.hc-deposit {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border: 1px dashed #ccc;
}

.hc-notice-list {
    margin: 10px 0 0 18px;
}

.hc-energy-guide {
    margin-top: 10px;
}

.hc-energy-guide h5 {
    margin: 12px 0 6px;
    font-size: 15px;
}

.hc-energy-guide p {
    margin: 0 0 8px;
    line-height: 1.6;
}

.hc-text-small {
    font-size: calc(1em - 2pt);
}

.hc-risk-note {
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
}

.hc-amount-wide {
    min-width: 260px;
}

.hc-form-disabled {
    opacity: 0.85;
}

.hc-form-disabled input:disabled,
.hc-form-disabled select:disabled,
.hc-form-disabled textarea:disabled {
    background: #f3f3f3;
    cursor: not-allowed;
}

.hc-form-disabled .hc-btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.hc-badge {
    display: inline-block;
    background: #2f7d32;
    color: #fff;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 13px;
    margin-bottom: 12px;
}

.hc-section {
    margin-top: 24px;
}

.hc-auth-links {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.hc-auth-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #cfd8df;
    color: #1b3c59;
    background: #fff;
    text-decoration: none;
}

.hc-auth-icon:hover {
    background: #f3f6f9;
}

.hc-auth-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.hc-auth-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hc-member-gate {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #f5f7fa;
    border: 1px solid #d7e0e8;
}

.hc-member-gate-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff4e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d9822b;
    border: 1px solid #f1d3ae;
    flex-shrink: 0;
}

.hc-member-gate-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.hc-member-gate-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.hc-member-gate-content p {
    margin: 0 0 10px;
    color: #4a5560;
}

.hc-table-form .hc-form-actions {
    text-align: right;
}

.hc-btn-submit {
    background: #1b3c59;
    border-radius: 10px;
    padding: 12px 26px;
    box-shadow: 0 6px 14px rgba(27, 60, 89, 0.18);
}

.hc-btn-submit:hover {
    background: #163249;
}

@media (max-width: 768px) {
    .hc-table {
        display: block;
        overflow-x: auto;
    }

    .hc-table th {
        width: auto;
    }
}
