[hidden] {
    display: none !important;
}

.form-hero {
    background: linear-gradient(135deg, #f1fbf3 0%, #ffffff 60%, #f3f7fa 100%);
    padding: 24px 0 10px;
    border-bottom: 1px solid #e8e8e8;
}

.form-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    padding: 0 18px 8px;
}

.form-hero-copy {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 18px 20px 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.form-hero-badge {
    display: inline-flex;
    background-color: #e7f4e8;
    color: #1d7c31;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    margin: 0 0 10px;
    letter-spacing: 0.4px;
}

.form-hero-title {
    margin: 0 0 10px;
    font-size: 28px;
    color: #1d7c31;
    letter-spacing: 0.6px;
}

.form-hero-lead,
.form-hero-note {
    margin: 0 0 10px;
    line-height: 1.7;
    color: #3f3f3f;
}

.form-section {
    background-color: #f9f9f9;
    padding: 24px 0 64px;
}

.form-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.inquiry-form {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 24px 22px 28px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: start;
}

.form-field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field-last {
    padding-bottom: 30px;
}

.field-line {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.field-line.align-start {
    align-items: flex-start;
    flex-wrap: wrap;
}

.field-line .input-control {
    width: 250px;
}

.field-line.align-start .input-control {
    width: 100%;
    min-width: 0;
}

.field-line.align-start .input-control-wide {
    width: 100%;
    min-width: 0;
}

.field-label {
    flex: 0 0 180px;
    max-width: 240px;
    font-weight: 800;
    color: #3d3d3d;
}

.field-label .required-mark {
    color: #e53935;
}

.form-block-title {
    font-size: 18px;
    font-weight: 800;
    color: #2d7c35;
    margin: 0 0 12px;
    letter-spacing: 0.3px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e0e0e0;
}

.form-label {
    font-weight: 800;
    color: #3d3d3d;
}

.input-control {
    width: 100%;
    border: 1px solid #d5d5d5;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
    background-color: #ffffff;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.input-control:focus {
    outline: none;
    border-color: #1d7c31;
    box-shadow: 0 0 0 3px rgba(29, 124, 49, 0.15);
}

.input-control::placeholder {
    color: #9b9b9b;
}

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

.input-control-wide {
    width: 400px !important;
    max-width: 600px;
    min-width: 0;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    max-width: 600px;
    width: 100%;
}

.checkbox-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #3d3d3d;
}

.privacy-policy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.privacy-policy-box {
    background-color: #f7faf7;
    border: 1px solid #dfe7df;
    border-radius: 14px;
    padding: 14px 16px;
    max-height: 220px;
    overflow-y: auto;
    line-height: 1.7;
    color: #3f3f3f;
    scrollbar-gutter: stable;
}

.privacy-policy-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    color: #2d7c35;
}

.privacy-policy-list {
    margin: 0 0 8px 18px;
    padding: 0;
}

.privacy-policy-list li {
    margin-bottom: 6px;
}

.privacy-consent {
    display: flex;
    align-self: center;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #2d2d2d;
}

.privacy-consent input {
    margin-top: 4px;
    width: 20px;
    height: 20px;
}

.required-mark {
    color: #e53935;
    font-weight: 800;
}

.field-note {
    margin: 0;
    color: #6a6a6a;
    font-size: 14px;
}

.field-error {
    margin: 0;
    color: #e53935;
    font-size: 14px;
    min-height: 18px;
}

.field-status {
    margin: 0;
    color: #2d7c35;
    font-size: 14px;
}

.postal-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.secondary-button {
    border: 1px solid #1d7c31;
    background-color: #f5fbf6;
    color: #1d7c31;
    padding: 11px 14px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background-color 0.12s ease,
        transform 0.12s ease;
    box-shadow: 0 6px 12px rgba(29, 124, 49, 0.12);
}

.secondary-button:hover {
    background-color: #e7f4e8;
    transform: translateY(-1px);
}

.secondary-button:focus-visible {
    outline: 2px solid #1d7c31;
    outline-offset: 2px;
}

.file-input {
    padding: 10px 10px;
    width: 400px !important;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    background-color: #52b85a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background-color 0.12s ease;
}

.primary-button:hover {
    background-color: #45a44e;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
}

.primary-button:disabled {
    background-color: #b8dcb9;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.primary-button:focus-visible {
    outline: 2px solid #2d7c35;
    outline-offset: 2px;
}

.form-actions .primary-button {
    width: auto;
    align-self: center;
}

.form-action-note {
    margin: 0;
    font-size: 14px;
    color: #4d4d4d;
}

.form-status {
    min-height: 20px;
    font-weight: 800;
    font-size: 15px;
}

.form-status-success {
    color: #1d7c31;
}

.form-status-error {
    color: #e53935;
}

@media (max-width: 960px) {
    .form-action-note {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .form-hero {
        padding: 16px 0 12px;
    }

    .form-hero-inner {
        padding: 0 14px 8px;
    }

    .form-container {
        padding: 0 12px;
    }

    .inquiry-form {
        padding: 18px 16px 22px;
        gap: 16px;
    }

    .form-grid {
        gap: 14px;
    }

    .field-line {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .field-label {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .field-line .input-control {
        width: 90% !important;
    }

    .input-control-wide {
        width: 90% !important;
        min-width: 0;
    }

    .checkbox-group {
        gap: 8px 12px;
        max-width: 100%;
    }

    .privacy-policy-box {
        max-height: 200px;
    }

    .form-actions {
        align-items: stretch;
    }

    .form-actions .primary-button {
        width: 100%;
    }
}
