/* ═══════════════════════════════════════
   PMM Sales Call Request — v1.0.0
   Premium callback form styling
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700&display=swap');

#pmm-scr-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
}

.pmm-scr-form-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Header */
.pmm-scr-header {
    background: linear-gradient(135deg, #1A1A2E 0%, #2D2D3F 100%);
    padding: 36px 32px 28px;
    text-align: center;
    color: #fff;
}

.pmm-scr-header-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.pmm-scr-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #fff;
}

.pmm-scr-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Form Body */
#pmm-scr-form {
    padding: 28px 32px 32px;
}

/* Row layout */
.pmm-scr-row {
    display: flex;
    gap: 16px;
    margin-bottom: 4px;
}

.pmm-scr-row .pmm-scr-field {
    flex: 1;
}

/* Fields */
.pmm-scr-field {
    margin-bottom: 18px;
}

.pmm-scr-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.pmm-scr-field label .req {
    color: #E31E24;
}

.pmm-scr-field input[type="text"],
.pmm-scr-field input[type="email"],
.pmm-scr-field input[type="tel"],
.pmm-scr-field input[type="url"],
.pmm-scr-field input[type="date"],
.pmm-scr-field select,
.pmm-scr-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #1F2937;
    background: #FAFBFC;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.pmm-scr-field input:focus,
.pmm-scr-field select:focus,
.pmm-scr-field textarea:focus {
    border-color: #E31E24;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

.pmm-scr-field input.invalid,
.pmm-scr-field select.invalid {
    border-color: #E31E24;
    background: #FEF2F2;
}

.pmm-scr-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Section Labels */
.pmm-scr-section {
    margin-bottom: 20px;
}

.pmm-scr-section-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F3F4F6;
}

/* Services Grid */
.pmm-scr-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.pmm-scr-service-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.pmm-scr-service-item:hover {
    border-color: #E31E24;
    background: #FEF2F2;
}

.pmm-scr-service-item.checked {
    background: #FEF2F2;
    border-color: #E31E24;
}

.pmm-scr-service-item input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #E31E24;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.pmm-scr-service-item label {
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

/* Loading */
.pmm-scr-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    color: #9CA3AF;
    font-size: 13px;
}

.pmm-scr-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid #E5E7EB;
    border-top-color: #E31E24;
    border-radius: 50%;
    animation: pmm-spin 0.7s linear infinite;
}

.pmm-scr-spinner-sm {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pmm-spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes pmm-spin {
    to { transform: rotate(360deg); }
}

/* Submit */
.pmm-scr-submit-wrap {
    margin-top: 24px;
}

.pmm-scr-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #E31E24, #c41a1f);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.pmm-scr-btn:hover {
    background: linear-gradient(135deg, #c41a1f, #a51519);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
}

.pmm-scr-btn:active {
    transform: translateY(0);
}

.pmm-scr-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.pmm-scr-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.pmm-scr-message.error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.pmm-scr-message.success {
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

/* Success State */
.pmm-scr-success {
    padding: 48px 32px;
    text-align: center;
}

.pmm-scr-success-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.pmm-scr-success h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    color: #1A1A2E;
    margin: 0 0 8px;
}

.pmm-scr-success p {
    font-size: 15px;
    color: #6B7280;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* No services */
.pmm-scr-no-services {
    padding: 12px 16px;
    background: #F9FAFB;
    border-radius: 8px;
    color: #9CA3AF;
    font-size: 13px;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    #pmm-scr-wrapper {
        padding: 10px;
    }

    .pmm-scr-row {
        flex-direction: column;
        gap: 0;
    }

    .pmm-scr-header {
        padding: 28px 20px 22px;
    }

    .pmm-scr-header h2 {
        font-size: 22px;
    }

    #pmm-scr-form {
        padding: 20px;
    }

    .pmm-scr-services-grid {
        grid-template-columns: 1fr;
    }
}
