/* ============================================
   Contact Form 7 Custom Styles for REOrGA
   ============================================ */

/* ============================================
   CORPORATE CONTACT FORM (Blue Theme)
   Use on: /contact page
   ============================================ */

.wpcf7-form {
    font-family: 'Noto Sans JP', sans-serif;
}

/* Form Container */
.contact-form-wrapper {
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    border-top: 4px solid #0B4BCF;
}

@media (min-width: 768px) {
    .contact-form-wrapper {
        padding: 3rem;
    }
}

/* Form Labels */
.wpcf7-form label,
.contact-form-wrapper label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0C1426;
    margin-bottom: 0.5rem;
}

/* Required Badge */
.required-badge {
    display: inline-block;
    background-color: #0B4BCF;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 2px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Text Inputs, Textareas */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    background-color: #F9FAFB;
    border: 1px solid #D1D5DB;
    padding: 0.75rem;
    border-radius: 2px;
    font-size: 0.875rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Noto Sans JP', sans-serif;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: #0B4BCF;
    box-shadow: 0 0 0 1px #0B4BCF;
}

.wpcf7-form textarea {
    min-height: 150px;
    line-height: 1.8;
    resize: vertical;
}

/* Placeholder */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #9CA3AF;
}

/* Form Row Spacing */
.form-row {
    margin-bottom: 1.5rem;
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-row-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Radio Button Cards (Corporate Blue) */
.radio-card-group {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .radio-card-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

.radio-card {
    position: relative;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid #E5E7EB;
    background-color: rgba(249, 250, 251, 0.5);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 100px;
}

.radio-card-label:hover {
    border-color: #0B4BCF;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.radio-card-label .material-symbols-outlined {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.radio-card-label span:last-child {
    font-weight: 700;
    font-size: 0.875rem;
}

/* Radio Card Selected State */
.radio-card input[type="radio"]:checked+.radio-card-label {
    background-color: #0B4BCF;
    color: white;
    border-color: #0B4BCF;
}

/* Checkbox Styling */
.wpcf7-form input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #0B4BCF;
    cursor: pointer;
}

.privacy-consent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 1rem;
}

.privacy-consent label {
    margin-bottom: 0;
    cursor: pointer;
}

.privacy-consent a {
    color: #0B4BCF;
    text-decoration: underline;
}

.privacy-consent a:hover {
    text-decoration: none;
}

/* Privacy Box */
.privacy-box {
    background-color: #F9FAFB;
    padding: 1.5rem;
    border-radius: 2px;
    border: 1px solid #E5E7EB;
    max-height: 160px;
    overflow-y: auto;
    font-size: 0.75rem;
    color: #6B7280;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Submit Button (Corporate) */
.wpcf7-form input[type="submit"],
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 3rem;
    background-color: #0C1426;
    color: white;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.wpcf7-form input[type="submit"]:hover,
.submit-button:hover {
    background-color: #0B4BCF;
}

.submit-center {
    text-align: center;
    padding-top: 1rem;
}

/* Validation Messages */
.wpcf7-not-valid-tip {
    color: #DC2626;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.wpcf7-response-output {
    border: 1px solid #0B4BCF !important;
    padding: 1rem !important;
    margin: 1rem 0 !important;
    background: #EFF6FF;
    color: #0C1426;
}

.wpcf7 form.invalid .wpcf7-response-output {
    border-color: #DC2626 !important;
    background: #FEF2F2;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #16A34A !important;
    background: #F0FDF4;
}

/* Contact Info Section */
.contact-info-section {
    margin-top: 3rem;
    text-align: center;
}

.contact-info-section p {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #0C1426;
    transition: color 0.3s;
}

.contact-phone:hover {
    color: #0B4BCF;
}

.contact-hours {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 0.5rem;
}

/* Section Divider */
.form-divider {
    border-top: 1px solid #E5E7EB;
    padding-top: 2rem;
    margin-top: 2rem;
}


/* ============================================
   RECRUIT ENTRY FORM (Red/Black Theme)
   Use on: /entry page
   ============================================ */

.recruit-form-wrapper {
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-top: 4px solid #E60012;
}

@media (min-width: 768px) {
    .recruit-form-wrapper {
        padding: 3rem;
    }
}

/* Recruit Required Badge */
.recruit-form-wrapper .required-badge {
    background-color: #E60012;
}

/* Recruit Text Inputs Focus */
.recruit-form-wrapper input[type="text"]:focus,
.recruit-form-wrapper input[type="email"]:focus,
.recruit-form-wrapper input[type="tel"]:focus,
.recruit-form-wrapper textarea:focus,
.recruit-form-wrapper select:focus {
    border-color: #E60012;
    box-shadow: 0 0 0 1px #E60012;
}

/* Radio Card (Recruit Red) */
.recruit-form-wrapper .radio-card-label:hover {
    border-color: #E60012;
}

.recruit-form-wrapper .radio-card input[type="radio"]:checked+.radio-card-label {
    background-color: #E60012;
    color: white;
    border-color: #E60012;
}

/* Checkbox Accent */
.recruit-form-wrapper input[type="checkbox"] {
    accent-color: #E60012;
}

/* Recruit Submit Button */
.recruit-form-wrapper input[type="submit"],
.recruit-form-wrapper .submit-button {
    background-color: #E60012;
}

.recruit-form-wrapper input[type="submit"]:hover,
.recruit-form-wrapper .submit-button:hover {
    background-color: #050505;
}

/* Recruit Links */
.recruit-form-wrapper a {
    color: #E60012;
}

/* Recruit Validation */
.recruit-form-wrapper .wpcf7-response-output {
    border-color: #E60012 !important;
    background: #FFF5F5;
}

/* Recruit Phone Link */
.recruit-form-wrapper .contact-phone:hover {
    color: #E60012;
}

/* ============================================
   ACCORDION for Entry Page
   ============================================ */

.accordion-item {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: #E60012;
}

.accordion-header h3 {
    font-weight: 700;
    font-size: 1.125rem;
}

.accordion-header .material-symbols-outlined {
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header .material-symbols-outlined {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-top: 1rem;
}

.accordion-content ul {
    font-size: 0.875rem;
    color: #4B5563;
    line-height: 1.8;
}

.accordion-content li {
    margin-bottom: 0.5rem;
}

.accordion-content strong {
    color: #050505;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-reorga-blue {
    color: #0B4BCF;
}

.text-brand-red {
    color: #E60012;
}

.bg-reorga-blue {
    background-color: #0B4BCF;
}

.bg-brand-red {
    background-color: #E60012;
}

.border-reorga-blue {
    border-color: #0B4BCF;
}

.border-brand-red {
    border-color: #E60012;
}