/* Wedding Form Styling */
.wwb-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
}

.wwb-form-section {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(130, 67, 80, 0.1);
    padding-bottom: 1rem;
}

.wwb-form-section h3 {
    color: #824350;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.wwb-form-row {
    margin-bottom: 1rem;
}

.wwb-form-col label {
    display: block;
    margin-bottom: 0.5rem;
    color: #824350;
    font-size: 0.875rem;
    font-weight: 500;
}

.wwb-form-col input[type="text"],
.wwb-form-col input[type="email"],
.wwb-form-col input[type="url"],
.wwb-form-col input[type="date"],
.wwb-form-col textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(130, 67, 80, 0.3);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.wwb-form-col input[type="text"]:focus,
.wwb-form-col input[type="email"]:focus,
.wwb-form-col input[type="url"]:focus,
.wwb-form-col input[type="date"]:focus,
.wwb-form-col textarea:focus {
    border-color: #824350;
    outline: none;
    box-shadow: 0 0 0 2px rgba(130, 67, 80, 0.1);
}

.wwb-form-col .required {
    color: #ff4d4f;
    margin-left: 0.25rem;
}

/* Image Upload Styling */
.wwb-image-upload {
    border: 2px dashed rgba(130, 67, 80, 0.2);
    padding: 1rem;
    text-align: center;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.wwb-image-upload input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: none;
    background: rgba(130, 67, 80, 0.05);
    border-radius: 0.25rem;
}

.wwb-image-upload:hover {
    border-color: #824350;
}

.wwb-image-preview {
    margin-top: 1rem;
    max-height: 200px;
    overflow: hidden;
}

/* Template Selection */
.wwb-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.wwb-template-item {
    border: 1px solid rgba(130, 67, 80, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wwb-template-item input[type="radio"] {
    display: none;
}

.wwb-template-item input[type="radio"]:checked + .wwb-template-preview {
    border: 2px solid #824350;
}

.wwb-template-preview {
    padding: 1rem;
    text-align: center;
}

.wwb-template-info {
    margin-top: 0.5rem;
}

.wwb-template-info h4 {
    color: #824350;
    margin-bottom: 0.25rem;
}

/* Submit Button */
.wwb-submit-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #824350;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.wwb-submit-button:hover {
    background-color: #6a3640;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .wwb-form {
        padding: 1rem;
    }

    .wwb-templates-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Message Styling */
.wwb-form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    display: none;
}

.wwb-form-message.loading,
.wwb-form-message.success,
.wwb-form-message.error {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wwb-form-message.loading {
    background-color: rgba(130, 67, 80, 0.1);
    color: #824350;
}

.wwb-form-message.success {
    background-color: rgba(130, 67, 80, 0.1);
    color: #824350;
}

.wwb-form-message.error {
    background-color: rgba(255, 77, 79, 0.1);
    color: #ff4d4f;
}

/* Preview Mode Banners */
.wwb-preview-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    text-align: center;
    z-index: 9999;
    font-weight: bold;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Preview Sharing Options */
.wwb-preview-sharing {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wwb-preview-sharing h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.wwb-preview-url-container {
    display: flex;
    margin-bottom: 15px;
}

.wwb-preview-url {
    flex: 1;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.wwb-copy-url {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
}

.wwb-copy-url:hover {
    background-color: #0069d9;
}

.wwb-expiry-notice {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 15px;
}

.wwb-regenerate-url {
    margin-bottom: 20px;
}

.wwb-preview-social {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.wwb-preview-social p {
    margin-bottom: 10px;
    font-weight: bold;
}

.wwb-preview-social a {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.wwb-share-whatsapp {
    background-color: #25D366;
}

.wwb-share-email {
    background-color: #007bff;
}

.wwb-payment-notice {
    margin-top: 20px;
    padding: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
}

.wwb-info {
    padding: 15px;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    color: #0c5460;
    margin-bottom: 20px;
}

.wwb-error {
    padding: 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    margin-bottom: 20px;
}

/* Add to preview options in dashboard */
.wwb-preview-options {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.wwb-preview-options h4 {
    margin-bottom: 15px;
    color: #333;
}