/**
 * Pet Memorial Plugin Styles - Nature/Wildlife Theme
 */

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

/* Form Container - Nature Style */
.pet-memorial-form-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    position: relative;
}

/* Form Wrapper with Nature Background */
.pet-memorial-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(253, 246, 227, 0.95) 100%);
    border-radius: 40px;
    padding: 60px 50px;
    box-shadow: 0 25px 50px rgba(93, 78, 55, 0.15);
    border: 3px solid #d4af37;
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
.pet-memorial-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #5d4e37;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(212, 175, 55, 0.1);
}

.form-subtitle {
    font-size: 1.1rem;
    color: #8b7355;
    font-style: italic;
    margin-bottom: 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #5d4e37;
    margin-bottom: 12px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input Fields */
.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 18px 25px;
    border: 3px solid #e8d5b0;
    border-radius: 25px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    color: #5d4e37;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(93, 78, 55, 0.05);
}

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        inset 0 2px 5px rgba(93, 78, 55, 0.05),
        0 0 0 4px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

/* Textarea Special Styling */
.form-group textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.8;
}

/* Upload Area */
.upload-area {
    border: 3px dashed #d4af37;
    border-radius: 30px;
    padding: 60px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(232, 213, 176, 0.05) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 Q30 50 50 90 Q70 50 50 10' fill='%23d4af37' opacity='0.02'/%3E%3C/svg%3E") repeat;
    transform: rotate(15deg);
    z-index: -1;
}

.upload-area:hover {
    border-color: #b8941f;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(232, 213, 176, 0.1) 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
}

.upload-area.dragover {
    border-color: #b8941f;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(232, 213, 176, 0.15) 100%);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 20px;
    display: block;
}

.upload-text {
    font-size: 1.2rem;
    color: #5d4e37;
    font-weight: 600;
    margin-bottom: 10px;
}

.upload-hint {
    color: #8b7355;
    font-size: 0.95rem;
    font-style: italic;
}

/* File Input Overlay */
.file-input-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Image Previews */
.image-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.image-preview {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(93, 78, 55, 0.15);
    border: 3px solid #d4af37;
    background: white;
    padding: 10px;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.image-preview:nth-child(even) {
    transform: rotate(1deg);
}

.image-preview:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 15px 35px rgba(93, 78, 55, 0.25);
}

.image-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
}

.remove-image {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.image-preview:hover .remove-image {
    opacity: 1;
}

.remove-image:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

/* Submit Button */
.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: white;
    border: none;
    padding: 22px 40px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 40px;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(212, 175, 55, 0.4);
}

.submit-button:active {
    transform: translateY(-2px);
}

.submit-button:disabled {
    background: linear-gradient(135deg, #bbb, #999);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 5px 15px rgba(187, 187, 187, 0.2);
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .submit-button {
    background: linear-gradient(135deg, #bbb, #999);
    cursor: wait;
}

/* Success/Error Messages */
.message {
    padding: 20px 30px;
    border-radius: 25px;
    margin: 25px 0;
    font-weight: 600;
    text-align: center;
    border: 2px solid;
}

.message.success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.1));
    color: #27ae60;
    border-color: #27ae60;
}

.message.error {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.1));
    color: #e74c3c;
    border-color: #e74c3c;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(93, 78, 55, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pet-memorial-form-container {
        padding: 0 15px;
    }
    
    .pet-memorial-form {
        padding: 40px 25px;
        border-radius: 25px;
    }
    
    .form-title {
        font-size: 2rem;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .image-previews {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .submit-button {
        padding: 18px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .form-title {
        font-size: 1.8rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="date"],
    .form-group textarea {
        padding: 15px 20px;
        border-radius: 20px;
    }
    
    .upload-area {
        padding: 30px 15px;
        border-radius: 20px;
    }
    
    .image-previews {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Print Styles */
@media print {
    .pet-memorial-form {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .submit-button,
    .upload-area,
    .image-previews {
        display: none;
    }
}