/* Main wrapper */
.wrap {
    max-width: 900px;
    margin: 30px auto;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Page title */
.wrap h1 {
    background: linear-gradient(135deg, #F7914C 0%, #F86E74 100%);
    color: white;
    padding: 35px 40px;
    margin: 0;
    border-radius: 0;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(247, 145, 76, 0.3);
    font-family: Arial;
}

/* Form styles */
.wrap form {
    padding: 40px;
}

/* Settings sections */
.form-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 0;
    overflow: hidden;
}

.form-table th {
    background: #fbfbfc;
    font-weight: 700;
    color: #2d3748;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.form-table td {
    padding: 22px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    background: #fbfbfc;
}

.form-table tr:hover td {
    background-color: #fafbfc;
}

.form-table tr:last-child td {
    border-bottom: none;
}

/* Section heading */
.form-table th.scope {
    background: linear-gradient(135deg, #F7914C 0%, #F86E74 100%);
    color: white;
    padding: 18px 22px;
    font-size: 14px;
    font-weight: 700;
}

/* Labels */
.form-table label {
    display: inline-flex;
    align-items: center;
    margin-right: 0;
    margin-bottom: 0;
    font-weight: 500;
    color: #2d3748;
    cursor: pointer;
    transition: color 0.2s ease;
    gap: 10px;
}

.form-table label:hover {
    color: #F7914C;
}

/* Checkboxes and radio buttons */
.form-table input[type="checkbox"],
.form-table input[type="radio"] {
    margin: 0;
    cursor: pointer;
    accent-color: #F7914C;
    flex-shrink: 0;
}

/* Select fields */
.form-table select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-width: 100%;
    box-sizing: border-box;
}

.form-table select:hover {
    border-color: #F7914C;
    box-shadow: 0 0 0 3px rgba(247, 145, 76, 0.1);
}

.form-table select:focus {
    outline: none;
    border-color: #F7914C;
    box-shadow: 0 0 0 3px rgba(247, 145, 76, 0.15);
}

/* Textarea */
.form-table textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #2d3748;
    transition: all 0.3s ease;
    box-sizing: border-box;
    resize: vertical;
    min-height: 120px;
}

.form-table textarea:hover {
    border-color: #F7914C;
    box-shadow: 0 0 0 3px rgba(247, 145, 76, 0.1);
}

.form-table textarea:focus {
    outline: none;
    border-color: #F7914C;
    box-shadow: 0 0 0 3px rgba(247, 145, 76, 0.15);
}

/* Helper text */
.form-table p {
    margin: 12px 0 0 0;
    font-size: 13px;
    color: #718096;
    font-style: italic;
}

/* Checkbox groups styling */
.form-table td > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Section info box */
.form-table td:first-child {
    font-weight: 600;
    color: #2d3748;
    width: 200px;
    white-space: nowrap;
}

/* Submit button */
.wrap .button-primary {
    background: linear-gradient(135deg, #F7914C 0%, #F86E74 100%) !important;
    color: white;
    border: none !important;
    padding: 8px 40px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(247, 145, 76, 0.3);
    text-transform: unset;
    letter-spacing: 0.5px;
    font-family: Arial;
}

.wrap .button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(247, 145, 76, 0.4);
}

.wrap .button-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(247, 145, 76, 0.3);
}

/* Footer text */
.wrap > p {
    padding: 0 40px 40px 40px;
    margin: 0;
    text-align: center;
    color: #718096;
    font-size: 14px;
}

.wrap > p a {
    color: #F7914C;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.wrap > p a:hover {
    color: #F86E74;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .wrap {
        margin: 15px;
    }

    .wrap h1 {
        font-size: 22px;
        padding: 25px 20px;
    }

    .wrap form {
        padding: 20px;
    }

    .form-table td {
        padding: 15px;
    }

    .form-table td:first-child {
        width: auto;
        white-space: normal;
        display: block;
        margin-bottom: 8px;
    }
}