:root {
    --gm-green:       #1e6b3c;
    --gm-green-dark:  #155230;
    --gm-green-light: #e8f5ee;
    --gm-red:         #c0392b;
    --gm-red-light:   #fdf0ee;
    --gm-gold:        #b8960c;
    --gm-border:      #d1d5db;
    --gm-bg:          #f9fafb;
    --gm-white:       #ffffff;
    --gm-text:        #1a1a2e;
    --gm-muted:       #6b7280;
    --gm-blue:        #001c5a;
    --gm-radius:      10px;
    --gm-shadow:      0 2px 12px rgba(0,0,0,0.08);
    --gm-shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
    --gm-transition:  0.15s ease;
    --gm-font:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gm-wrap {
    max-width:100%;
    margin: 0 auto;
    padding: 0 16px 40px;
    font-family: var(--gm-font);
    color: var(--gm-text);
    font-size: 15px;
    line-height: 1.6;
}

.gm-section {
    background: var(--gm-white);
    border: 0px solid var(--gm-border);
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 20px;
    overflow: hidden;
}

.gm-section h3 {
    margin: 0;
    padding: 14px 22px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gm-white);
    background: linear-gradient(135deg, var(--gm-blue) 0%, var(--gm-blue) 100%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gm-section h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
}

.gm-section > *:not(h3) {
    padding-left: 22px;
    padding-right: 22px;
}

.gm-section > h3 + * {
    padding-top: 18px;
}

.gm-section > *:last-child {
    padding-bottom: 20px;
}

.gm-field {
    margin-bottom: 14px;
}

.gm-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gm-text);
    margin-bottom: 5px;
}

.gm-required {
    color: var(--gm-red);
    margin-left: 2px;
}

.gm-input {
    display: block;
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--gm-border);
    border-radius: 7px;
    font-size: 15px;
    font-family: var(--gm-font);
    color: var(--gm-text);
    background: var(--gm-white);
    box-sizing: border-box;
    transition: border-color var(--gm-transition), box-shadow var(--gm-transition);
    appearance: none;
    -webkit-appearance: none;
}

select.gm-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%236b7280' d='M7 9L2 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

textarea.gm-input {
    resize: vertical;
    min-height: 90px;
}

.gm-input:focus {
    outline: none;
    border-color: var(--gm-green);
    box-shadow: 0 0 0 3px rgba(30,107,60,0.12);
}

.gm-input.gm-error {
    border-color: var(--gm-red);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.10);
}

.gm-input[readonly] {
    background: #f3f4f6;
    color: var(--gm-muted);
    cursor: not-allowed;
}

.gm-field-error {
    display: block;
    font-size: 12px;
    color: var(--gm-red);
    margin-top: 4px;
}

.gm-hint {
    font-size: 13px;
    color: var(--gm-muted);
    font-style: italic;
    margin-bottom: 14px;
}

.gm-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.gm-col-half {
    flex: 1;
    min-width: 200px;
}

.gm-col-third {
    flex: 1;
    min-width: 140px;
}

#gm-renewal-section {
    display: none;
    border-top: 3px solid var(--gm-green);
}

#gm-code-field {
    display: none;
}

#gm-club-name-wrap {
    display: none;
}

#gm-code-sent-msg {
    display: none;
    color: #1e7e34;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
}

#gm-verify-msg {
    font-size: 13px;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
}

.gm-fee-table {
    border: 0px solid var(--gm-border);
    border-radius: 0px;
    overflow: hidden;
    margin-bottom: 8px;
}

.gm-fee-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    font-size: 14px;
    border-bottom: 1px solid var(--gm-border);
}

.gm-fee-row:last-child {
    border-bottom: none;
}

.gm-fee-total {
    background: var(--gm-green-light);
    font-weight: 700;
    font-size: 15px;
}

.gm-fee-total .gm-fee-label,
.gm-fee-total .gm-fee-value {
    color: var(--gm-green-dark);
}

.gm-fee-value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.gm-notice {
    padding: 13px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin: 0 22px 16px;
    border-left: 4px solid;
    display: none;
}

.gm-notice-success {
    background: #eafaf1;
    border-color: #1e7e34;
    color: #1e7e34;
}

.gm-notice-error {
    background: var(--gm-red-light);
    border-color: var(--gm-red);
    color: var(--gm-red);
}

.gm-notice-info {
    background: #eaf4fb;
    border-color: #1a6fa8;
    color: #1a6fa8;
}

.gm-submit-wrap {
    padding-top: 6px;
    padding-bottom: 22px;
    text-align: center;
}

.gm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 0px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--gm-transition);
    font-family: var(--gm-font);
    text-decoration: none;
}

.gm-btn-primary {
    width: 100%;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gm-green), var(--gm-green-dark));
    color: var(--gm-white);
    box-shadow: 0 4px 14px rgba(30,107,60,0.3);
}

.gm-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--gm-green-dark), #0e3d23);
    box-shadow: 0 6px 20px rgba(30,107,60,0.4);
    transform: translateY(-1px);
}

.gm-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.gm-btn-secondary {
    background: var(--gm-white);
    color: var(--gm-green);
    border: 1.5px solid var(--gm-green);
}

.gm-btn-secondary:hover:not(:disabled) {
    background: var(--gm-green-light);
}

.gm-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gm-loading {
    display: none;
    font-size: 14px;
    color: var(--gm-muted);
    margin-top: 10px;
}

.gm-loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--gm-border);
    border-top-color: var(--gm-green);
    border-radius: 50%;
    animation: gm-spin 0.7s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes gm-spin { to { transform: rotate(360deg); } }

.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 4px 0 16px;
}

@media (max-width: 600px) {
    .gm-row { flex-direction: column; gap: 0; }
    .gm-col-half, .gm-col-third { min-width: 100%; flex: none; }
    .gm-wrap { padding: 0 8px 32px; }
    .gm-section > * { padding-left: 14px; padding-right: 14px; }
    .gm-section h3 { padding: 12px 14px; }
    .gm-fee-row { padding: 10px 14px; }
    .gm-notice { margin: 0 14px 14px; }
}
