/* public/css/form-style.css */



.rezept-form-group {
    margin-bottom: 1.5rem;
}

.rezept-form-group label {
    display: block;
    margin-bottom: 0.5rem; 
    font-weight: 600;
    color: #333;
}

.rezept-form-group input[type="text"],
.rezept-form-group input[type="email"],
.rezept-form-group input[type="tel"] {
    width: 100%;
}


.rezept-grid {
    display: grid;
    gap: 1rem;
}

.rezept-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.rezept-address-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .rezept-grid-2,
    .rezept-address-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.rezept-file-upload {
    border: 2px dashed #d7dae6;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: background 0.2s;
}

.rezept-file-upload:hover,
.rezept-file-upload.is-dragging {
    background: #eaecf2;
    border-color: #1e9993;
}

.rezept-file-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.rezept-file-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.rezept-file-preview {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rezept-file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rezept-file-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #666;
}

.rezept-file-icon.pdf {
    color: #d63638;
}

.rezept-file-icon.doc {
    color: #007cba;
}

.rezept-file-name {
    padding: 0.5rem;
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid #eee;
}

.rezept-remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(214, 54, 56, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 18px;
    transition: background 0.2s;
    z-index: 10;
}

.rezept-remove-file:hover {
    background: #d63638;
}


.rezept-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rezept-error-msg {
    color: #d63638;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.rezept-success-msg {
    padding: 2rem;
    border-radius: 8px;
    color: #23592a;
    text-align: center;
}