/*
 Theme Name:   Divi Child
 Template:     Divi
*/

/* =======================
   Container for ACF Input Pages
   ======================= */
.acf-input-page {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

/* =======================
   Form Fields
   ======================= */
.acf-input-page .acf-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px; /* compact spacing */
}

.acf-input-page .acf-label label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px; /* tighter spacing */
    color: #333;
}

.acf-input-page .acf-input input[type="text"],
.acf-input-page .acf-input input[type="number"],
.acf-input-page .acf-input textarea,
.acf-input-page .acf-input select {
    padding: 10px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

/* Focus state */
.acf-input-page .acf-input input:focus,
.acf-input-page .acf-input textarea:focus,
.acf-input-page .acf-input select:focus {
    border-color: #007cba;
    outline: none;
}

/* Submit Button */
.acf-input-page input[type="submit"] {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.acf-input-page input[type="submit"]:hover {
    background: #006ba1;
}

/* Success and Error Notices */
.acf-input-page .acf-notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.acf-input-page .acf-notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Reduce spacing between label and field for Divi modules */
.et_pb_module .acf-field,
.et_pb_module .acf-label,
.et_pb_module .acf-input {
    margin-bottom: 6px !important;
}

/* Textareas: allow newlines */
.acf-input-page textarea {
    white-space: normal !important;
    resize: vertical;
}

/* =======================
   Responsive Adjustments
   ======================= */
@media (max-width: 600px) {
    .acf-input-page {
        padding: 15px;
        margin: 10px auto;
    }
    .acf-input-page input[type="submit"] {
        width: 100%;
        text-align: center;
    }
}
