/**
 * Frontend CSS for Textile Drop-off Plugin
 */

/* Reset and base styles */
.textile-dropoff-form-wrapper,
.textile-dropoff-thank-you {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.5;
    color: #333;
}

/* Form container */
.textile-dropoff-form-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Form header */
.textile-dropoff-header {
    margin-bottom: 2rem;
    text-align: center;
}

.textile-dropoff-header h2 {
    font-size: 28px;
    color: #F65275;
    margin-bottom: 0.5rem;
}

.container-info {
    background-color: #f0f7ff;
    border-left: 4px solid #F65275;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
}

/* Form rows */
.form-row {
    margin-bottom: 1.5rem;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: border-color 0.2s, background-color 0.2s;
}

.form-row input[type="text"]:focus,
.form-row input[type="tel"]:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: #F65275;
    background-color: #fff;
    outline: none;
}

.form-row .description {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Required field indicator */
.required {
    color: #d63638;
}

/* Dropzone for file uploads */
.dropzone {
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fbfbfb;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: #F65275;
    background-color: #f0f7ff;
}

.dropzone-message {
    color: #666;
}

.dropzone-message i {
    font-size: 2rem;
    color: #F65275;
    margin-bottom: 0.5rem;
}

.small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* File restrictions info */
.file-restrictions {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.75rem;
    text-align: center;
}

/* Image preview container */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.image-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: background-color 0.2s;
}

.remove-image:hover {
    background: rgba(220, 53, 69, 1);
}

/* Points information box */
.points-info-box {
    background-color: #f0f7ff;
    border-left: 4px solid #F65275;
    padding: 1.25rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.points-info-box h3 {
    margin-top: 0;
    color: #F65275;
    margin-bottom: 0.75rem;
}

/* Upload progress bar */
.upload-progress {
    margin: 1rem 0;
}

.progress-bar-container {
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background-color: #F65275;
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* Form actions */
.form-actions {
    margin-top: 2rem;
    text-align: center;
}

button.button-primary {
    background-color: #F65275;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button.button-primary:hover {
    background-color: #F65275;
}

button.button-primary:disabled {
    background-color: #97c3d4;
    cursor: not-allowed;
}

/* Submission status messages */
.submission-status {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
}

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

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

/* Login notice */
.textile-dropoff-login-notice {
    text-align: center;
    background-color: #f8d7da;
    color: #721c24;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.textile-dropoff-login-notice a.button {
    display: inline-block;
    background-color: #F65275;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    margin-top: 0.75rem;
    transition: background-color 0.2s;
}

.textile-dropoff-login-notice a.button:hover {
    background-color: #F65275;
}

/* Thank You Page Styles */
.textile-dropoff-thank-you {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.thank-you-header {
    margin-bottom: 2rem;
}

.thank-you-header h2 {
    font-size: 28px;
    color: #F65275;
    margin-bottom: 1rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #d4edda;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon i {
    font-size: 40px;
    color: #28a745;
}

.large-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.submission-details {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    text-align: left;
}

.submission-details h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    margin-bottom: 0.75rem;
}

.detail-label {
    font-weight: bold;
    min-width: 150px;
}

.points-earned {
    margin: 2rem 0;
}

.points-circle {
    margin: 1.5rem auto;
    width: 150px;
    height: 150px;
    background-color: #F65275;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.points-value {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
}

.points-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.invisible{
    display: none !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .textile-dropoff-form-wrapper,
    .textile-dropoff-thank-you {
        padding: 1.5rem;
        margin: 1rem;
    }

    .textile-dropoff-header h2,
    .thank-you-header h2 {
        font-size: 24px;
    }

    .dropzone {
        padding: 1.5rem;
    }

    .points-circle {
        width: 120px;
        height: 120px;
    }

    .points-value {
        font-size: 2.5rem;
    }

    .detail-row {
        flex-direction: column;
        margin-bottom: 1rem;
    }

    .detail-label {
        margin-bottom: 0.25rem;
    }

    .thank-you-actions a.button {
        display: block;
        margin: 0.5rem 0;
    }
}
