/* ====================================================
   Smart Review Manager – Front-End Form Styles
   ==================================================== */

.srm-wrapper {
    max-width: 600px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
}

.srm-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* ---- Title ---- */
.srm-title {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #ffffff;
    margin: 0;
    padding: 28px 36px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ---- Form container ---- */
.srm-form-container {
    padding: 36px;
}

/* ---- Field groups ---- */
.srm-field-group {
    margin-bottom: 24px;
}

.srm-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.srm-required {
    color: #ef4444;
    margin-left: 2px;
}

.srm-input,
.srm-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    color: #1f2937;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.srm-input:focus,
.srm-textarea:focus {
    outline: none;
    border-color: #3498db;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.12);
}

.srm-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---- Star rating ---- */
.srm-star-rating {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 4px;
    margin-bottom: 6px;
}

.srm-star-input {
    display: none;
}

.srm-star-label {
    font-size: 2.5rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s, transform 0.1s;
    line-height: 1;
    padding: 2px;
    user-select: none;
}

.srm-star-label:hover,
.srm-star-label:hover ~ .srm-star-label,
.srm-star-input:checked ~ .srm-star-label {
    color: #f59e0b;
}

.srm-star-label:hover {
    transform: scale(1.15);
}

.srm-star-hint {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 0;
}

/* ---- Error message ---- */
.srm-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.srm-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* ---- Submit button ---- */
.srm-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    background: #2064b1;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 16px 28px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}

.srm-submit-btn:hover {
    opacity: 0.92;
}

.srm-submit-btn:active {
    transform: scale(0.99);
}

.srm-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner */
.srm-btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: srm-spin 0.7s linear infinite;
}

.srm-submit-btn.loading .srm-btn-spinner {
    display: block;
}

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

/* ---- Success states ---- */
.srm-success-container {
    padding: 48px 36px;
    text-align: center;
}

.srm-success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
    animation: srm-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.srm-success-icon--gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

@keyframes srm-pop {
    0%   { transform: scale(0); }
    100% { transform: scale(1); }
}

.srm-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
}

.srm-success-message {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 28px;
}

/* Google redirect button */
.srm-google-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #e5e7eb;
    color: #1f2937;
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.srm-google-btn:hover {
    border-color: #4285F4;
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.2);
    color: #1f2937;
    text-decoration: none;
}

.srm-redirect-note {
    margin-top: 16px;
    font-size: 0.78rem;
    color: #9ca3af;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .srm-form-container,
    .srm-success-container {
        padding: 24px 20px;
    }

    .srm-title {
        padding: 20px 24px;
        font-size: 1.25rem;
    }

    .srm-star-label {
        font-size: 2rem;
    }
}
