/* ==========================================
   MediaSqueezer Contact Page Styles
   ========================================== */

/* ── Contact Hero ── */
.contact-hero {
    padding-top: 160px;
    padding-bottom: 40px;
    text-align: center;
}

/* ── Contact Form Section ── */
.contact-form-section {
    padding: 0 0 var(--section-pad);
}

.contact-form-section>.container {
    max-width: 680px;
}

/* ── Glass Card ── */
.contact-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease);
}

.contact-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ── Form Group ── */
.form-group {
    margin-bottom: 28px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

/* ── Input / Select / Textarea ── */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-primary);
    background: #ffffff;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 102, 245, 0.1);
    background: #ffffff;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

/* ── Select styling ── */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

/* ── Textarea ── */
.form-textarea {
    resize: vertical;
    min-height: 160px;
    max-height: 400px;
    line-height: 1.7;
}

/* ── Hints & Char Count ── */
.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.5;
}

.form-char-count {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
}

/* ── Submit Button ── */
.form-actions {
    text-align: center;
    margin-top: 36px;
}

.form-actions .btn-primary {
    min-width: 220px;
}

/* ── Success Message ── */
.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.success-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .contact-hero {
        padding-top: 120px;
        padding-bottom: 24px;
    }

    .contact-card {
        padding: 32px 24px;
        border-radius: 18px;
    }

    .form-group {
        margin-bottom: 22px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    .form-actions .btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding-top: 100px;
        padding-bottom: 16px;
    }

    .contact-card {
        padding: 24px 18px;
        border-radius: 14px;
    }
}