/* Contact public pages (form / confirm / complete)
   Dark theme overrides matching www.microfund.co.jp main site. */

.form-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 32px;
    box-shadow: none;
    margin: 0;
}

.form-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    letter-spacing: 1px;
}

.form-card p.lead {
    margin-bottom: 24px;
    color: #888;
    font-size: 14px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
    color: #ccc;
    letter-spacing: 0.5px;
}

.form-group label .required {
    color: #ff6b8a;
    margin-left: 4px;
    font-size: 12px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 14px;
    color: #e0e0e0;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(0, 212, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.7;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.form-group select option {
    background: #0a0e17;
    color: #e0e0e0;
}

.errors {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #ff9aa9;
    font-size: 14px;
}

.related-post {
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid #00d4ff;
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    color: #ccc;
}

.related-post strong {
    display: block;
    margin-bottom: 4px;
    color: #e0e0e0;
    font-weight: 600;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.3s, background 0.3s, opacity 0.3s, color 0.3s;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #00d4ff, #7b2ff7);
}

.btn-primary:hover {
    opacity: 0.88;
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    color: #ccc;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    color: #fff;
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.06);
    text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: #888;
}

.breadcrumb a:hover {
    color: #00d4ff;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 6px;
    color: #555;
}

/* Confirm table */
.confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.confirm-table th {
    text-align: left;
    padding: 14px 16px 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    width: 30%;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    vertical-align: top;
    white-space: nowrap;
}

.confirm-table td {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #ccc;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Complete page */
.complete-card {
    text-align: center;
    padding: 56px 32px;
}

.complete-card .icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #00d4ff;
    line-height: 1;
}

.complete-card h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 12px;
}

.complete-card p {
    color: #888;
    margin-bottom: 28px;
    font-size: 14px;
}

.complete-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .form-card { padding: 24px 18px; }
    .btn-group { flex-direction: column; }
    .btn { width: 100%; }
    .confirm-table th,
    .confirm-table td {
        display: block;
        width: 100%;
        padding-right: 0;
    }
    .confirm-table th {
        padding-bottom: 4px;
        border-bottom: none;
    }
}
