/* Public Styles for Invitation Manager Pro */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

.impro-invitation-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
}

/* Container */
.impro-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Invitation Card */
.impro-invitation-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.impro-invitation-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.impro-invitation-title {
    margin: 0;
    font-size: 2.5em;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.impro-invitation-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.impro-invitation-content {
    padding: 40px 30px;
}

.impro-guest-greeting {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 300;
}

.impro-invitation-text {
    font-size: 1.2em;
    line-height: 1.8;
    color: #555;
    text-align: center;
    margin: 30px 0;
}

/* Event Details */
.impro-event-details {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.impro-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.impro-detail-item:last-child {
    margin-bottom: 0;
}

.impro-detail-icon {
    font-size: 1.5em;
    margin-left: 15px;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.impro-detail-text {
    flex: 1;
}

/* QR Code */
.impro-qr-code {
    text-align: center;
    margin: 30px 0;
}

.impro-qr-code img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 200px;
    height: auto;
}

/* RSVP Section */
.impro-rsvp-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.impro-rsvp-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8em;
    font-weight: 300;
}

.impro-rsvp-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Form Elements */
.impro-form-group {
    margin-bottom: 25px;
}

.impro-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

.impro-form-input,
.impro-form-select,
.impro-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.impro-form-input:focus,
.impro-form-select:focus,
.impro-form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.impro-form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Radio Group */
.impro-radio-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.impro-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    border: 2px solid #e1e5e9;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
    min-width: 140px;
    justify-content: center;
}

.impro-radio-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.impro-radio-option.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.impro-radio-option input[type="radio"] {
    display: none;
}

/* Checkbox */
.impro-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.impro-checkbox-group:hover {
    background: #e9ecef;
}

.impro-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

/* Submit Button */
.impro-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    font-family: inherit;
}

.impro-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.impro-submit-btn:active {
    transform: translateY(0);
}

.impro-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Messages */
.impro-message {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    font-weight: 500;
}

.impro-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.impro-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.impro-message-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.impro-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading State */
.impro-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.impro-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff40;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: impro-spin 1s linear infinite;
}

@keyframes impro-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes impro-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.impro-fade-in {
    animation: impro-fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .impro-container {
        padding: 10px;
    }

    .impro-invitation-header {
        padding: 30px 20px;
    }

    .impro-invitation-title {
        font-size: 2em;
    }

    .impro-invitation-content {
        padding: 30px 20px;
    }

    .impro-guest-greeting {
        font-size: 1.5em;
    }

    .impro-invitation-text {
        font-size: 1.1em;
    }

    .impro-event-details {
        padding: 20px;
    }

    .impro-detail-item {
        font-size: 1em;
    }

    .impro-radio-group {
        flex-direction: column;
        align-items: center;
    }

    .impro-radio-option {
        min-width: 200px;
    }

    .impro-rsvp-section {
        padding: 20px;
    }

    .impro-rsvp-title {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .impro-invitation-title {
        font-size: 1.8em;
    }

    .impro-guest-greeting {
        font-size: 1.3em;
    }

    .impro-invitation-text {
        font-size: 1em;
    }

    .impro-detail-item {
        font-size: 0.9em;
    }

    .impro-detail-icon {
        font-size: 1.3em;
        margin-left: 10px;
    }

    .impro-radio-option {
        padding: 12px 20px;
        min-width: 160px;
    }
}

/* Print Styles */
@media print {
    .impro-rsvp-section {
        display: none;
    }

    .impro-invitation-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .impro-invitation-header {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .impro-radio-option {
        border-width: 3px;
    }

    .impro-form-input,
    .impro-form-select,
    .impro-form-textarea {
        border-width: 3px;
    }

    .impro-submit-btn {
        border: 3px solid #333;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .impro-radio-option,
    .impro-submit-btn,
    .impro-form-input,
    .impro-form-select,
    .impro-form-textarea {
        transition: none;
    }

    .impro-spinner {
        animation: none;
    }

    .impro-fade-in {
        animation: none;
    }
}

