/* Form Checkout PayPal — front-end styles
   Clean, modern, neutral. Inherits theme typography. */

.fcp-form,
.fcp-checkout,
.fcp-thankyou {
    max-width: 720px;
    margin: 32px auto;
    padding: 28px 32px;
    background: #ffffff;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-family: inherit;
    color: #1f2937;
    box-sizing: border-box;
}

/* ---------- Form grid (2 cols desktop, 1 col mobile) ---------- */
form.fcp-form .fcp-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px 16px !important;
    margin-bottom: 4px;
    width: 100%;
}
form.fcp-form .fcp-grid > .fcp-row {
    width: auto !important;
    float: none !important;
    display: block !important;
    margin: 0 !important;
    min-width: 0;
}
form.fcp-form .fcp-grid > .fcp-row-full {
    grid-column: 1 / -1 !important;
}

@media (max-width: 600px) {
    form.fcp-form .fcp-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ---------- Form rows ---------- */
.fcp-form > .fcp-row { margin-bottom: 16px; }  /* rows outside the grid (e.g. service select) */
.fcp-form .fcp-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.fcp-req { color: #dc2626; margin-left: 2px; }

.fcp-form input[type=text],
.fcp-form input[type=email],
.fcp-form input[type=tel],
.fcp-form input[type=number],
.fcp-form select,
.fcp-form textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}
.fcp-form textarea { min-height: 90px; resize: vertical; }

/* Custom select arrow */
.fcp-form select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236b7280' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.fcp-form input:focus,
.fcp-form select:focus,
.fcp-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* ---------- Total summary ---------- */
.fcp-summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 16px;
    margin: 20px 0 16px;
    background: #f8fafc;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    font-size: 14px;
}
.fcp-summary strong { color: #374151; font-weight: 600; }
.fcp-summary .fcp-summary-amount {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}
.fcp-summary .fcp-summary-name {
    color: #6b7280;
    font-size: 13px;
}

/* ---------- Submit button ---------- */
.fcp-submit {
    display: block;
    width: 100%;
    padding: 12px 24px;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #111827;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s ease, transform .05s ease;
    font-family: inherit;
}
.fcp-submit:hover { background: #374151; }
.fcp-submit:active { transform: translateY(1px); }
.fcp-submit:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Messages ---------- */
.fcp-message {
    margin-top: 14px;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 6px;
}
.fcp-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.fcp-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ============ CHECKOUT ============ */
.fcp-summary-box {
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    margin-bottom: 22px;
}
.fcp-summary-box h2 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    border: 0;
    padding: 0;
}
.fcp-summary-box p { margin: 4px 0; font-size: 14px; }
.fcp-total {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-left: 4px;
}
.fcp-summary-box code {
    background: #e5e7eb;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}
.fcp-details { margin-top: 10px; }
.fcp-details summary {
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}
.fcp-details ul {
    list-style: none;
    padding: 10px 0 0;
    margin: 0;
    font-size: 13px;
    color: #374151;
}
.fcp-details li { padding: 3px 0; }

/* Payment method cards */
.fcp-checkout h2 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 22px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.fcp-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.fcp-method {
    padding: 14px;
    border: 2px solid #e3e6ea;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all .15s ease;
}
.fcp-method:hover { border-color: #cbd5e1; }
.fcp-method:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1e40af;
}
.fcp-method input { margin-right: 6px; vertical-align: middle; }

.fcp-method-pane {
    padding: 16px 0 0;
    font-size: 14px;
    color: #374151;
}
.fcp-method-pane p { margin: 0 0 12px; }

/* Bank table */
.fcp-bank {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 14px;
    font-size: 13px;
}
.fcp-bank th,
.fcp-bank td {
    padding: 9px 12px;
    border: 1px solid #e3e6ea;
    text-align: left;
}
.fcp-bank th {
    background: #f8fafc;
    font-weight: 600;
    color: #4b5563;
    width: 38%;
}
.fcp-bank-instructions {
    background: #fffbeb;
    color: #92400e;
    border-left: 3px solid #f59e0b;
    padding: 10px 14px;
    font-size: 13px;
    margin: 12px 0 16px;
    border-radius: 0 4px 4px 0;
}
.fcp-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
}

/* Thank you */
.fcp-thankyou {
    text-align: center;
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.fcp-thankyou h2 {
    color: #166534;
    margin-top: 0;
    font-size: 22px;
    border: 0;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
}
.fcp-thankyou p { font-size: 14px; line-height: 1.6; }
.fcp-thankyou code { background: #dcfce7; padding: 2px 6px; border-radius: 3px; }

#fcp-paypal-buttons { margin-top: 14px; }

/* ---------- Time slot picker ---------- */
.fcp-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 8px;
    margin-top: 4px;
}
.fcp-slot-btn {
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
}
.fcp-slot-btn:hover { border-color: #9ca3af; background: #f9fafb; }
.fcp-slot-btn.fcp-slot-selected {
    background: #111827;
    color: #fff;
    border-color: #111827;
}
.fcp-slots-hint {
    color: #6b7280;
    font-size: 13px;
    margin-top: 6px;
    font-style: italic;
}

/* Meet link button on thank-you */
.fcp-meet-link {
    display: inline-block;
    padding: 10px 18px;
    background: #0f9d58;
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    margin-top: 8px;
}
.fcp-meet-link:hover { background: #0b7e46; }

/* Responsive */
@media (max-width: 600px) {
    .fcp-form, .fcp-checkout, .fcp-thankyou {
        margin: 16px;
        padding: 20px;
    }
    .fcp-methods { grid-template-columns: 1fr; }
}
