/**
 * Replacement Application Form Styles
 * 交代申込フォームのスタイル（contact-registration ベースで統一）
 *
 * @package SHIPS Child
 * @subpackage Features\ReplacementApplication\Assets
 */

/* ==========================================================================
   Page wrapper (contact-registration と同じ)
   ========================================================================== */
#douyu-wrapper .ships-replacement-application-form-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
}

@media (max-width: 640px) {
    #douyu-wrapper .ships-replacement-application-form-wrapper {
        padding: 1.5rem 1rem;
    }
}

#douyu-wrapper .ships-replacement-application-form-wrapper .form-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.625rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Form card (contact-registration と同じ)
   ========================================================================== */
#douyu-wrapper .ships-replacement-application-form {
    background: #fff;
    padding: 2rem 2rem 2.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

@media (max-width: 640px) {
    #douyu-wrapper .ships-replacement-application-form {
        padding: 1.5rem 1.25rem;
        border-radius: 10px;
    }
}

/* ==========================================================================
   Sections (contact-registration と同じ)
   ========================================================================== */
#douyu-wrapper .ships-replacement-application-form .form-section {
    margin-bottom: 2.25rem;
}

#douyu-wrapper .ships-replacement-application-form .form-section:last-of-type {
    margin-bottom: 0;
}

#douyu-wrapper .ships-replacement-application-form .section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #e2e8f0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

#douyu-wrapper .ships-replacement-application-form .section-title::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.25rem;
    background: #2271b1;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 6px;
}

#douyu-wrapper .ships-replacement-application-form .form-section:nth-of-type(1) .section-title::before {
    content: "1";
}

/* ==========================================================================
   Form rows & labels (contact-registration と同じ)
   ========================================================================== */
#douyu-wrapper .ships-replacement-application-form .form-row {
    margin-bottom: 1.25rem;
}

#douyu-wrapper .ships-replacement-application-form .form-row:last-child {
    margin-bottom: 0;
}

#douyu-wrapper .ships-replacement-application-form .form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

/* Required field badge (入会と同じ) */
#douyu-wrapper .ships-replacement-application-form .form-label .required-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background-color: #ef4444;
    border-radius: 0.25rem;
    line-height: 1.4;
    vertical-align: middle;
    white-space: nowrap;
}

#douyu-wrapper .ships-replacement-application-form .form-label .required {
    display: none;
}

/* ==========================================================================
   Inputs (contact-registration と同じ)
   ========================================================================== */
#douyu-wrapper .ships-replacement-application-form .form-input,
#douyu-wrapper .ships-replacement-application-form .form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #1e293b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#douyu-wrapper .ships-replacement-application-form .form-input::placeholder,
#douyu-wrapper .ships-replacement-application-form .form-textarea::placeholder {
    color: #94a3b8;
}

#douyu-wrapper .ships-replacement-application-form .form-input:focus,
#douyu-wrapper .ships-replacement-application-form .form-textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.2);
}

#douyu-wrapper .ships-replacement-application-form .form-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

/* ==========================================================================
   Privacy section (contact-registration と同じ)
   ========================================================================== */
#douyu-wrapper .ships-replacement-application-form .form-privacy-text {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
}

#douyu-wrapper .ships-replacement-application-form .form-privacy-body {
    margin: 1rem 0;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    max-height: 12rem;
    overflow-y: auto;
}

#douyu-wrapper .ships-replacement-application-form .form-privacy-body h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9375rem;
    color: #1e293b;
}

#douyu-wrapper .ships-replacement-application-form .form-privacy-body ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
}

#douyu-wrapper .ships-replacement-application-form .form-row-checkbox {
    margin-top: 1rem;
    margin-bottom: 0;
}

#douyu-wrapper .ships-replacement-application-form .form-row-checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

/* ==========================================================================
   Submit & messages (contact-registration と同じ)
   ========================================================================== */
#douyu-wrapper .ships-replacement-application-form .form-row-submit {
    margin-top: 2rem;
    margin-bottom: 0;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

#douyu-wrapper .ships-replacement-application-form .form-submit-button {
    padding: 0.75rem 2.5rem;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.05s ease;
}

#douyu-wrapper .ships-replacement-application-form .form-submit-button:hover {
    background: #135e96;
}

#douyu-wrapper .ships-replacement-application-form .form-submit-button:active {
    transform: translateY(1px);
}

#douyu-wrapper .ships-replacement-application-form .form-errors {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 0.9375rem;
}

#douyu-wrapper .ships-replacement-application-form .form-errors ul {
    margin: 0;
    padding-left: 1.25rem;
}

#douyu-wrapper .ships-replacement-application-form .form-success {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-size: 0.9375rem;
}
