/* ==========================================================================
   CONTACT PAGE SPECIFIC STYLES
   ========================================================================== */

/* CONTAINER OVERRIDE
   ========================================================================== */
.container {
    max-width: 60vw;
    margin: 0 auto;
    padding: 80px 20px 20px;
}

/* STEP NAVIGATION
   ========================================================================== */
.step-nav {
    display: flex;
    margin-bottom: 40px;
    border: 2px solid #000;
}

.step {
    flex: 1;
    padding: 15px 10px;
    text-align: center;
    font-size: 14px;
    position: relative;
    vertical-align: middle;
    line-height: 1;
    color: #000;
}

.step img {
    height: 20px;
    vertical-align: text-top;
}

.step.active {
    background: var(--color-brand-gold);

}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid #ddd;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    z-index: 1;
}

.step.active:not(:last-child)::after {
    border-left-color: var(--color-brand-gold);
}

.step:first-child:not(.active)::after {

    border-left: 10px solid #fff;
}

/* FORM SECTIONS
   ========================================================================== */
.form-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    margin-left: 0;
    padding-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 60%;
    background: var(--color-brand-gold);
}

/* FORM GROUPS
   ========================================================================== */
.form-group {
    margin-bottom: 30px;
    display: flex;
    align-items: stretch;
    gap: 60px;

}

.form-label {
    width: 200px;
    padding: 20px 0;

    color: var(--color-text-primary);
    font-size: var(--font-size-base);
    position: relative;
    flex: 0.8;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-label.ver02 {

    align-items: start;
}

.form-input {
    flex: 1.2;
    padding: 25px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.required {
    background: var(--color-brand-red);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
    font-weight: normal;
    white-space: nowrap;
}

.optional {
    background: var(--color-brand-blue);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
    font-weight: normal;
    white-space: nowrap;
}

.confirm_form .required {
    display: none;
}

.confirm_form .optional {
    display: none;
}

.form-input input,
.form-input textarea,
.form-input select {
    width: 100%;
    padding: 12px;
    border: 1px solid #000;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-select {
    position: relative;
}

.form-input.form-select::after {
    content: '';
    position: absolute;
    display: block;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    border-top: 12px solid var(--color-brand-gold);
    border-bottom: 0;
    z-index: 100;
    pointer-events: none;
}

.form-input select {
    background-color: #DCDDDD;
    border: 1px solid #DCDDDD;
    border-radius: 43px;
    text-align: center;

    -webkit-appearance: none;
    appearance: none;
}

.form-input textarea {
    height: 120px;
    resize: vertical;
}

.form-input input.sub_input {
    width: 110px;
    padding: 3px 12px;

    font-size: 12px;

}

/* ADDRESS GROUP
   ========================================================================== */
.address-container {
    background-color: white;
    max-width: 600px;
    margin: 0 auto;
}

.address-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.address-label {
    min-width: 80px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.address-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.address-input:focus {
    outline: none;
    border-color: #4a90e2;
}

.name-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.name-inputs .zip01 {
    flex: 0.6;
}

.name-inputs .zip02 {
    flex: 1;
}

.name-note {
    background-color: #707070;
    border-radius: 10px;
    font-size: 12px;
    color: #fff;
    margin-left: 10px;
    padding: 5px 10px;
    white-space: nowrap;

}

select.address-input {
    /*
    background-color: #f8f9fa; 
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;*/
    cursor: pointer;
    padding-right: 35px;
}

.wide-input {
    width: 100%;
}

.address-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.zip-code {
    width: 120px;
}

.zip-lookup {
    background: #666;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.address-note {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 5px;
}

/* RADIO AND CHECKBOX GROUPS
   ========================================================================== */
.radio-group,
.checkbox-group,
.mwform-radio-field label {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.radio-item,
.checkbox-item,
.mwform-radio-field label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.radio-item input,
.checkbox-item input,
.mwform-radio-field label input {
    width: auto;
}

/* SUBMIT SECTION
   ========================================================================== */
.submit-section {
    text-align: center;
    margin-top: 50px;
}

.submit-button {
    background: linear-gradient(45deg, var(--color-brand-gold), #B8860B);
    color: white;
    border: none;
    padding: 15px 60px;
}

.privacy-note {
    font-size: var(--font-size-sm);
}

/* RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .container {
        max-width: 100vw;
        margin: 0 auto;
        padding: 20px 24px 20px;
    }

    .form-group {
        margin-bottom: 30px;
        display: flex;
        align-items: stretch;
        gap: 12px;
        flex-direction: column;
    }

    .form-label {
        width: 100%;
        padding: 0;
        font-weight: 400;
        color: var(--color-text-primary);
        font-size: var(--font-size-base);
        position: relative;
        flex: none;
        border-top: none;
        border-bottom: none;
        display: flex;
        justify-content: start;
        align-items: center;
    }

    .form-input {
        flex: none;
        padding: 0 0 16px;
        border-top: none;
        border-bottom: 1px solid var(--color-border);
    }

    .name-note {
        white-space: normal;
    }

    .form-input.form-select::after {
        top: calc(50% - 7px);
    }

}

.confirm_form .radio-item:has(> :contains("雑誌"))::before {
    display: inline-block;
    content: "";
    margin-right: 2px;
    width: 13px;
    height: 13px;
    vertical-align: top;
    border-radius: 50%;
    background-color: var(--color-brand-gold);
    box-shadow: 0 0 0 1px #000;
    border: 2px solid #fff;

}

.confirm_form .radio-item::before,
.confirm_form .checkbox-item::before {
    /*
    display: inline-block;
    content: "";
    margin-right: 2px;
    width: 13px;
    height: 13px;
    vertical-align: top;
    border-radius: 50%;
    background-color: var(--color-brand-gold);
    box-shadow: 0 0 0 1px #000;
    border: 2px solid #fff;*/
}

.confirm_form .radio-item span {
    font-size: 0.7em;
}

.p-country-name {
    opacity: 0;
}

.contact-fin-ttl {
    font-size: 1.3rem;
    margin: 20px 0;
    font-weight: bold;
}