/* Modern Form Styling */
@charset "utf-8";

/* Left-Right Layout */
.contact-container {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    min-height: 100vh;
    align-items: flex-start;
}

.contact-left {
    flex: 1;
    max-width: 480px;
}

.contact-right {
    flex: 1;
    width: 100%;
}

/* Left side content styling */
.contact-header {
    margin-bottom: 40px;
}

.contact-title-en {
    font-size: 48px;
    font-weight: 700;
    color: #E67243;
    margin-bottom: 16px;
    font-family: 'Lato', sans-serif;
}

.contact-title-jp {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.contact-description {
    margin-bottom: 40px;
}

.contact-description p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-info-item {
    margin-bottom: 24px;
}

.contact-info-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.contact-info-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.contact-info-value a {
    color: #E67243;
    text-decoration: none;
}

.contact-info-value a:hover {
    text-decoration: underline;
}

.contact-notes {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.contact-notes p {
    margin-bottom: 12px;
}

.required-badge {
    background: #E67243;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Form container styling */
.form-container {
    background: #FFF3E8;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Base form styling */
.form-table {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-table th {
    background: none !important;
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    border: none !important;
    padding: 20px 30px 15px 0 !important;
    vertical-align: top !important;
    width: 200px;
    position: relative;
}

.form-table td {
    border: none !important;
    padding: 15px 0 25px 0 !important;
    vertical-align: top !important;
}

/* Required indicator styling */
.form-table th.req::after {
    content: "必須";
    background: #ff6b35;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    position: absolute;
    right: 0;
    top: 20px;
    margin: 0;
}

/* Form field styling */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.required {
    color: #E67243;
    font-weight: 500;
}

/* Modern input styling */
.modern-input {
    width: 100% !important;
    max-width: none !important;
    height: 48px !important;
    border: 2px solid #e1e8ed !important;
    border-radius: 8px !important;
    padding: 0 16px !important;
    font-size: 16px !important;
    color: #333 !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.modern-input:focus {
    border-color: #E67243 !important;
    box-shadow: 0 0 0 3px rgba(230, 114, 67, 0.1) !important;
    outline: none !important;
    background: #fff !important;
}

.modern-input::placeholder {
    color: #9ca3af !important;
    font-size: 14px !important;
}

/* Age input - smaller width */
.age-input {
    max-width: 150px !important;
}

/* Modern select styling */
.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 300px;
}

.modern-select {
    width: 100% !important;
    height: 48px !important;
    border: 2px solid #e1e8ed !important;
    border-radius: 8px !important;
    padding: 0 40px 0 16px !important;
    font-size: 16px !important;
    color: #333 !important;
    background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E") no-repeat right 12px center !important;
    background-size: 16px !important;
    appearance: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.modern-select:focus {
    border-color: #E67243 !important;
    box-shadow: 0 0 0 3px rgba(230, 114, 67, 0.1) !important;
    outline: none !important;
}

/* Modern textarea styling */
.modern-textarea {
    width: 100% !important;
    max-width: 500px !important;
    min-height: 120px !important;
    border: 2px solid #e1e8ed !important;
    border-radius: 8px !important;
    padding: 16px !important;
    font-size: 16px !important;
    color: #333 !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
    resize: vertical !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
}

.modern-textarea:focus {
    border-color: #E67243 !important;
    box-shadow: 0 0 0 3px rgba(230, 114, 67, 0.1) !important;
    outline: none !important;
}

.modern-textarea::placeholder {
    color: #9ca3af !important;
    font-size: 14px !important;
}

/* Address section styling */
.address-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.postcode-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.postcode-wrapper label {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.postcode-input {
    max-width: 200px !important;
}

.postcode-note {
    font-size: 12px;
    color: #6b7280;
    margin-left: 10px;
}

.prefecture-city-wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.city-input {
    max-width: 250px !important;
}

.street-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Error message styling */
.error-msg {
    color: #dc2626 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-msg::before {
    content: "⚠";
    color: #dc2626;
    font-size: 14px;
}

/* Submit button styling */
.submit-area {
    text-align: center !important;
    margin: 40px 0 !important;
}

.modern-submit-button {
    background: #E67243 !important;
    border: none !important;
    border-radius: 50px !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 16px 48px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(230, 114, 67, 0.3) !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
}

.modern-submit-button:hover {
    background: #D6633A !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(230, 114, 67, 0.4) !important;
}

.modern-submit-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(230, 114, 67, 0.3) !important;
}

/* Checkbox field styling */
.checkbox-field {
    margin: 16px 0;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.privacy-checkbox {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    cursor: pointer !important;
    flex-shrink: 0;
}

.checkmark {
    display: none;
}

.checkbox-text {
    color: #333;
    flex: 1;
}

/* Radio button and checkbox styling */
.mwform-radio-field {
    margin: 8px 12px 8px 0 !important;
    display: inline-block !important;
}

.mwform-radio-field label {
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #374151 !important;
    gap: 8px !important;
}

.mwform-radio-field input[type="radio"],
.mwform-radio-field input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    cursor: pointer !important;
}

/* Help text styling */
.rei {
    font-size: 13px !important;
    color: #6b7280 !important;
    margin: 5px 0 0 0 !important;
    line-height: 1.4 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 40px;
        padding: 40px 20px;
    }
    
    .contact-left,
    .contact-right {
        max-width: none;
        flex: none;
    }
    
    .contact-title-en {
        font-size: 36px;
    }
    
    .contact-title-jp {
        font-size: 20px;
    }
    
    .form-container {
        padding: 24px;
    }
    
    .form-table {
        padding: 20px;
    }
    
    .form-table th {
        width: auto;
        padding: 15px 0 10px 0 !important;
        display: block;
    }
    
    .form-table td {
        padding: 10px 0 20px 0 !important;
        display: block;
    }
    
    .form-table th.req::after {
        position: static;
        margin-left: 10px;
        display: inline-block;
    }
    
    .prefecture-city-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .postcode-wrapper {
        flex-wrap: wrap;
    }
    
    .modern-input,
    .modern-select,
    .modern-textarea {
        max-width: 100% !important;
    }
    
    .modern-submit-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 20px 16px;
    }
    
    .contact-title-en {
        font-size: 28px;
    }
    
    .contact-title-jp {
        font-size: 18px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .form-fields {
        gap: 20px;
    }
}

/* Focus states for accessibility */
.modern-input:focus,
.modern-select:focus,
.modern-textarea:focus {
    outline: 2px solid #E67243;
    outline-offset: 2px;
}

/* Loading state for submit button */
.modern-submit-button:disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Confirmation page styles */
.confirmation-content {
    padding: 0;
}

.confirmation-section {
    margin-bottom: 30px;
    text-align: center;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.confirmation-note {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.confirmation-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.confirmation-field {
    border-bottom: 1px solid #e1e8ed;
    padding-bottom: 16px;
}

.confirmation-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.confirmation-field .field-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    display: block;
}

.confirmation-field .field-value {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
}

/* Button area styles */
.button-area {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e1e8ed;
}

.back-button {
    background: #f8f9fa !important;
    border: 2px solid #e1e8ed !important;
    border-radius: 50px !important;
    color: #666 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 12px 32px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.back-button:hover {
    background: #e9ecef !important;
    border-color: #d1d5db !important;
    color: #495057 !important;
    transform: translateY(-1px) !important;
}

.back-button:active {
    transform: translateY(0) !important;
}

/* Responsive styles for confirmation page */
@media (max-width: 768px) {
    .confirmation-section {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .confirmation-note {
        font-size: 14px;
    }
    
    .confirmation-fields {
        gap: 16px;
        margin-bottom: 30px;
    }
    
    .confirmation-field .field-value {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .button-area {
        flex-direction: column;
        gap: 12px;
    }
    
         .back-button,
     .modern-submit-button {
         width: 100%;
         max-width: 280px;
     }
 }

/* Footer styles */
.infinite-copyright-wrapper {
    color: #0a0a0a;
    background-color: #ffffff;
    padding: 25px;
}

.infinite-body * {
    border-color: #e2e2e2;
}

.infinite-body-front .gdlr-core-container, .infinite-body-front .infinite-container {
    padding-left: 35px;
    padding-right: 35px;
}

.infinite-copyright-text, .infinite-copyright-left, .infinite-copyright-right {
    text-transform: uppercase;
    font-size: 14px;
}

.infinite-item-pdlr, .gdlr-core-item-pdlr {
    padding-left: 15px;
    padding-right: 15px;
}

.infinite-copyright-text {
    text-align: center;
    font-size: 14px;
}

.copyright-text {
    font-size: 14px;
    text-align: center;
    color: #0a0a0a;
}

.copyright-text-supplement {
    font-size: 11px;
    margin-top: 5px;
    color: #0a0a0a;
    text-align: center;
}

@media screen and (min-width: 850px) {
    .copyright-text-supplement {
        font-size: 12px;
        margin-top: 5px;
    }
} 