/* =========================================================
   RESIZE IMAGE
   ========================================================= */

/* =========================================================
   PAGE
========================================================= */

.resize-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.resize-header {
    text-align: center;
    margin-bottom: 30px;
}

.resize-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.resize-header p {
    color: #666;
    font-size: 1.05rem;
}

.resize-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
}

.resize-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.resize-panel {
    min-width: 0;
}

.resize-panel h2 {
    font-size: 1.35rem;
    margin-bottom: 20px;
}

.field-group {
    margin-bottom: 18px;
}

.field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
}

.field-group input,
.field-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #ccc;
    border-radius: 7px;
    font-size: 15px;
    background: #fff;
}

.dimensions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.file-input-wrapper {
    border: 2px dashed #bbb;
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.file-input-wrapper:hover {
    border-color: #007bff;
    background: #f8fbff;
}

.file-input-wrapper input[type="file"] {
    width: 100%;
}

.preview-container {
    min-height: 350px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.preview-container img {
    display: none;
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

.preview-placeholder {
    color: #777;
    text-align: center;
}

.preview-info {
    display: none;
    margin-top: 12px;
    text-align: center;
    color: #555;
    font-size: 14px;
}

.preset-info {
    margin-top: 6px;
    color: #777;
    font-size: 13px;
}

.resize-submit {
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 8px;
    background: #28a745;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.resize-submit:hover {
    background: #218838;
}

.resize-submit:disabled {
    background: #999;
    cursor: not-allowed;
}


/* =========================================================
   CONVERSION STATUS
========================================================= */

.conversion-status {
    display: none;
    margin-top: 25px;
    padding: 20px;
    border-radius: 10px;
    background: #f5f5f5;
    text-align: center;
}

.conversion-status.visible {
    display: block;
}

.status-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.status-message {
    color: #666;
    margin-bottom: 15px;
}

.progress-container {
    width: 100%;
    height: 10px;
    background: #ddd;
    border-radius: 20px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #007bff;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #555;
}

.download-button {
    display: none;
    margin-top: 15px;
    padding: 12px 25px;
    background: #007bff;
    color: white;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
}

.download-button:hover {
    background: #0056b3;
    color: white;
}

.error-message {
    display: none;
    margin-top: 15px;
    padding: 12px;
    border-radius: 7px;
    background: #f8d7da;
    color: #721c24;
}

.gdpr-statement {
    margin-top: 18px;
    color: #666;
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
}


/* =========================================================
   INFORMATION SECTIONS
========================================================= */

.info-section {
    margin-top: 50px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.info-section h2 {
    text-align: center;
    margin-bottom: 25px;
}

.info-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.info-column h3 {
    font-size: 1.1rem;
}

.info-column p {
    color: #555;
    line-height: 1.6;
}


/* =========================================================
   FAQ
========================================================= */

.faq-section {
    margin-top: 50px;
    padding-bottom: 30px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 25px;
}

.faq-item {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-question {
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    display: none;
    padding: 0 18px 18px;
    color: #555;
    line-height: 1.6;
}

.faq-question.active + .faq-answer {
    display: block;
}

.toggle-icon {
    font-size: 20px;
    margin-left: 10px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .resize-page {
        padding: 15px;
    }

    .resize-header h1 {
        font-size: 2rem;
    }

    .resize-card {
        padding: 20px;
    }

    .resize-grid {
        grid-template-columns: 1fr;
    }

    .info-columns {
        grid-template-columns: 1fr;
    }

    .preview-container {
        min-height: 250px;
    }
}
