/* VMac Feedback Form */
.vmac-fb-wrapper {
    max-width: 520px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.vmac-fb-wrapper * {
    box-sizing: border-box;
}

/* Title */
.vmac-fb-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin: 0 0 28px 0;
    line-height: 1.35;
}

/* Fields */
.vmac-fb-field {
    margin-bottom: 20px;
}

.vmac-fb-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.vmac-fb-required {
    color: #ef4444;
}

.vmac-fb-optional {
    color: #9ca3af;
    font-weight: 400;
    font-size: 13px;
}

.vmac-fb-field input[type="text"],
.vmac-fb-field input[type="email"],
.vmac-fb-field input[type="tel"],
.vmac-fb-field textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
    font-family: inherit;
}

.vmac-fb-field input:focus,
.vmac-fb-field textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.vmac-fb-field textarea {
    resize: vertical;
    min-height: 100px;
}

.vmac-fb-field input.vmac-fb-error {
    border-color: #ef4444;
}

.vmac-fb-field-error-msg {
    color: #ef4444;
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

/* Stars */
.vmac-fb-rating-field {
    text-align: center;
    padding-top: 8px;
}

.vmac-fb-rating-field > label {
    text-align: center;
}

.vmac-fb-stars {
    display: inline-flex;
    gap: 6px;
    margin-top: 8px;
    cursor: pointer;
}

.vmac-fb-star {
    display: inline-flex;
    transition: transform 0.15s;
}

.vmac-fb-star:hover {
    transform: scale(1.15);
}

.vmac-fb-star svg {
    fill: #d1d5db;
    transition: fill 0.15s;
    stroke: none;
}

.vmac-fb-star.active svg,
.vmac-fb-star.hover svg {
    fill: #f0b849;
}

.vmac-fb-stars.vmac-fb-error .vmac-fb-star svg {
    fill: #fca5a5;
}

/* Submit */
.vmac-fb-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
}

.vmac-fb-submit:hover {
    background: #1d4ed8;
}

.vmac-fb-submit:active {
    transform: scale(0.98);
}

.vmac-fb-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner */
.vmac-fb-spinner {
    animation: vmac-spin 0.8s linear infinite;
    margin-right: 6px;
}

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

/* Thank You (1-4 stars) */
.vmac-fb-step-thankyou {
    text-align: center;
    padding: 40px 20px;
}

.vmac-fb-thankyou-icon {
    margin-bottom: 16px;
}

.vmac-fb-thankyou-text {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
}

/* 5-Star Review */
.vmac-fb-step-review {
    text-align: center;
    padding: 32px 20px;
}

.vmac-fb-five-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
}

.vmac-fb-review-text {
    font-size: 16px;
    color: #374151;
    line-height: 1.65;
    margin-bottom: 28px;
    white-space: pre-line;
}

.vmac-fb-review-heading {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.vmac-fb-platform-logo {
    margin-bottom: 20px;
}

.vmac-fb-platform-logo img {
    width: 250px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.vmac-fb-review-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 700;
    color: #fff !important;
    background: #22c55e;
    border: none;
    border-radius: 8px;
    text-decoration: none !important;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.vmac-fb-review-btn:hover {
    background: #16a34a;
    color: #fff !important;
}

.vmac-fb-review-btn:active {
    transform: scale(0.98);
}

/* Animations */
.vmac-fb-step {
    animation: vmac-fadeIn 0.4s ease;
}

@keyframes vmac-fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Auto-open countdown notice */
.vmac-fb-auto-open {
    margin-top: 20px;
    padding: 14px 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    text-align: center;
}

.vmac-fb-auto-open-text {
    font-size: 14px;
    color: #0c4a6e;
    line-height: 1.5;
    margin-bottom: 10px;
}

.vmac-fb-auto-open-text strong {
    color: #0c4a6e;
}

.vmac-fb-auto-open-progress {
    height: 4px;
    background: #e0f2fe;
    border-radius: 2px;
    overflow: hidden;
}

.vmac-fb-auto-open-bar {
    height: 100%;
    background: #0284c7;
    width: 100%;
    border-radius: 2px;
}

.vmac-fb-auto-open.vmac-fb-auto-open-blocked {
    background: #fef3c7;
    border-color: #fcd34d;
}

.vmac-fb-auto-open.vmac-fb-auto-open-blocked .vmac-fb-auto-open-text,
.vmac-fb-auto-open.vmac-fb-auto-open-blocked .vmac-fb-auto-open-text strong {
    color: #78350f;
}

.vmac-fb-auto-open.vmac-fb-auto-open-blocked .vmac-fb-auto-open-progress {
    display: none;
}
