/**
 * SessionReaper Widget Styles
 */

.sessionreaper-widget {
    max-width: 100%;
    margin: 0 auto;
}

.sr-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    border: 4px solid var(--primary-color, #e3381b);
}

.sr-badge {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: var(--primary-color, #e3381b);
    color: #ffffff;
    border-radius: 50%;
    width: 6rem;
    height: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: rotate(12deg);
    z-index: 10;
}

.sr-badge-text {
    font-size: 0.875rem;
    line-height: 1.2;
}

.sr-badge-price {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.sr-header {
    margin-bottom: 1.5rem;
}

.sr-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color, #000000);
    font-weight: 600;
}

.sr-subtitle {
    color: var(--subtitle-color, #6b7280);
    margin: 0;
}

.sr-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sr-form-group {
    display: flex;
    flex-direction: column;
}

.sr-label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-color, #000000);
    font-weight: 500;
}

.sr-input {
    width: 100%;
    height: 2.5rem;
    border-radius: 6px;
    padding: 0 0.75rem;
    font-size: 1rem;
    background: #ffffff;
    border: 2px solid #d1d5db;
    transition: all 0.2s;
    color: var(--text-color, #000000);
}

.sr-input:focus {
    outline: none;
    border-color: var(--primary-color, #e3381b);
    box-shadow: 0 0 0 3px rgba(227, 56, 27, 0.1);
}

.sr-input::placeholder {
    color: #9ca3af;
}

.sr-service-box {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.sr-service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sr-service-title {
    color: var(--text-color, #000000);
    font-weight: 500;
}

.sr-service-price {
    color: var(--text-color, #000000);
    font-weight: 600;
}

.sr-features {
    font-size: 0.875rem;
    color: var(--subtitle-color, #6b7280);
    line-height: 1.6;
}

.sr-features br {
    display: block;
    content: "";
    margin-top: 0.25rem;
}

.sr-button {
    width: 100%;
    background: var(--primary-color, #e3381b);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sr-button:hover {
    background: var(--primary-hover, #c42e16);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.sr-button:active {
    transform: translateY(0);
}

.sr-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sr-button svg {
    flex-shrink: 0;
}

.sr-secure-text {
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.sr-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.sr-trust {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--subtitle-color, #6b7280);
}

.sr-trust svg {
    color: var(--primary-color, #e3381b);
    flex-shrink: 0;
}

/* Loading State */
.sr-form.loading .sr-button {
    position: relative;
    color: transparent;
}

.sr-form.loading .sr-button::after {
    content: "";
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    top: 50%;
    left: 50%;
    margin-left: -0.75rem;
    margin-top: -0.75rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Error Message */
.sr-error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    border: 1px solid #fecaca;
}

/* Success Message */
.sr-success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    border: 1px solid #a7f3d0;
}

/* Responsive */
@media (max-width: 640px) {
    .sr-card {
        padding: 1.5rem;
    }
    
    .sr-badge {
        width: 5rem;
        height: 5rem;
        top: -0.75rem;
        right: -0.75rem;
    }
    
    .sr-badge-text {
        font-size: 0.75rem;
    }
    
    .sr-badge-price {
        font-size: 1.25rem;
    }
    
    .sr-title {
        font-size: 1.25rem;
    }
    
    .sr-button {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }
}
