/**
 * RSVP Connector - Styles
 */

/* Container */
.rsvp-form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Title */
.rsvp-form-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
}

.rsvp-form-description {
    margin: 0 0 25px 0;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    line-height: 1.5;
}

/* Form Group */
.rsvp-form-group {
    margin-bottom: 20px;
}

.rsvp-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.rsvp-form-group label .required {
    color: #ef4444;
    margin-left: 2px;
}

/* Inputs */
.rsvp-input,
.rsvp-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #1f2937;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.rsvp-input:focus,
.rsvp-select:focus {
    outline: none;
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.rsvp-input::placeholder {
    color: #9ca3af;
}

.rsvp-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

/* Help Text */
.rsvp-help-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
}

/* Submit Button */
.rsvp-submit-group {
    margin-top: 25px;
}

.rsvp-submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rsvp-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.rsvp-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.rsvp-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.rsvp-submit-btn.rsvp-loading {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* Spinner */
.rsvp-spinner {
    width: 20px;
    height: 20px;
    animation: rsvp-rotate 1s linear infinite;
}

@keyframes rsvp-rotate {
    100% { transform: rotate(360deg); }
}

.rsvp-btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Message */
.rsvp-message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.rsvp-message-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.rsvp-message-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 480px) {
    .rsvp-form-container {
        padding: 20px;
        margin: 0 15px;
        border-radius: 10px;
    }
    
    .rsvp-form-title {
        font-size: 20px;
    }
    
    .rsvp-input,
    .rsvp-select {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .rsvp-submit-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}
