/*
 * HashAdv Proposal Flow - Custom Styling
 *
 * This stylesheet is designed to override default theme styles (like Astra)
 * to ensure a consistent, custom look for the proposal form.
 *
 */

/* =====================
   General Form Wrapper
   ===================== */
.hashadv-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #f9fafb !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    line-height: 1.6;
}

/* =====================
   Text and Color Scheme
   ===================== */
.form-title, .cluster-heading {
    color: #e11d48 !important;
    font-weight: 700 !important;
    text-align: center;
    border-bottom: 2px solid #e11d48 !important;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.cluster-heading {
    font-weight: 600 !important;
    margin-top: 0;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #e11d48 !important;
    font-weight: 600 !important;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    color: #e11d48 !important;
    padding: 12px !important;
    width: 100% !important;
    box-sizing: border-box;
    font-size: 16px !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af !important;
    font-style: italic !important;
}

/* Normal text and output fields */
.form-group input:read-only,
.proposal-table td,
.proposal-table th,
.proposal-table input,
.proposal-table textarea {
    color: #111 !important;
}

/* =====================
   Buttons
   ===================== */
.next-button,
#submit-button {
    background: #111827 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600 !important;
    margin-top: 20px;
    float: right;
    box-shadow: none !important;
    transition: background-color 0.3s ease;
}

.next-button:hover,
#submit-button:hover {
    background: #2d3748 !important;
}

/* =====================
   Progress Bar
   ===================== */
.pf_wrap .progress {
    background: #f1f5f9 !important;
    border: 1px solid #e5e7eb !important;
    height: 15px;
    border-radius: 5px;
    margin-bottom: 25px;
    overflow: hidden;
}

.pf_wrap .progress .progress-bar {
    background: #e11d48 !important;
    height: 100%;
    transition: width .25s ease !important;
}

/* =====================
   Proposal Table Styling
   ===================== */
.proposal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.proposal-table th, .proposal-table td {
    border: 1px solid #e5e7eb !important;
    padding: 12px !important;
    text-align: left;
}

.proposal-table th {
    background-color: #e11d48 !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.proposal-table tr:nth-child(even) {
    background-color: #f9fafb !important;
}

.proposal-table .table-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e5e7eb !important;
    padding: 5px;
    background: #fff !important;
    border-radius: 12px !important;
    color: #e11d48 !important;
}

.proposal-table .table-input-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e5e7eb !important;
    padding: 5px;
    background: #fff !important;
    border-radius: 12px !important;
    color: #e11d48 !important;
    min-height: 80px; /* Provides a better starting height */
}

/* =====================
   Utility Classes
   ===================== */
.cluster-section {
    display: none;
}

.cluster-section.active-cluster {
    display: block;
}

.success-message {
    text-align: center;
    color: #e11d48;
    font-size: 24px;
    font-weight: 700;
    padding: 50px;
}