
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #F8FAFC;
    color: #333;
    line-height: 1.6;
}

.application-container {
    max-width: 950px;
    margin: 0 auto 70px auto;
    /* background-color: white; */
    padding: 50px 40px;
    /* box-shadow: 0 1px 3px rgba(0,0,0,0.1); */
}

header {
    text-align: start;
    /* border-bottom: 2px solid #e0e0e0; */
    /* padding-bottom: 30px; */
    margin-bottom: 40px;
}

header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1a3a52;
    margin-bottom: 10px;
}

header p {
    font-size: 15px;
    color: #666;
}

.form-section {
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px 30px;
    background-color: white;
}

.form-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: #2C5BA9;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* border-bottom: 1px solid #e0e0e0; */
    padding-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

label .required {
    color: #d32f2f;
}

input, select, textarea {
    padding: 11px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    background-color: #fafafa;
    color: #333;
    /* -webkit-appearance: none;   
    -moz-appearance: none;     
    appearance: none;    */

}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #1976d2;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* NOTICE BOXES */
.notice {
    padding: 18px;
    margin-bottom: 25px;
    border-radius: 4px;
    border-left: 4px solid #d32f2f;
    background-color: #ffebee;
    margin-top: 20px;
}

.notice h3 {
    font-size: 14px;
    font-weight: 600;
    color: #d32f2f;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice p {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.6;
}

.notice ul {
    font-size: 13px;
    color: #555;
    margin: 8px 0 0 20px;
    line-height: 1.6;
}

.notice li {
    margin-bottom: 5px;
}

.notice a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

.notice a:hover {
    text-decoration: underline;
}

/* PRIVACY POLICY SECTION */
.policy-section {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.policy-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1a3a52;
    margin-bottom: 12px;
}

.policy-section p {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.7;
}

.policy-section ul {
    font-size: 13px;
    color: #555;
    margin: 10px 0 10px 20px;
    line-height: 1.7;
}

.policy-section li {
    margin-bottom: 6px;
}

/* SKILLS CONTAINER */
.skills-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.skill-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 50px;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.hub-row {
    display: grid;
    grid-template-columns: 1fr 1fr 50px;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.skill-row:last-child, .hub-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.skill-row.first, .hub-row.first {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.delete-skill-btn, .delete-hub-btn {
    align-self: flex-end;
    padding: 8px 12px;
    background-color: #ffcdd2;
    color: #c62828;
    border: 1px solid #ef5350;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s;
    height: fit-content;
}

.delete-skill-btn:hover, .delete-hub-btn:hover {
    background-color: #ef5350;
    color: white;
}

.add-skill-btn, .add-hub-btn {
    padding: 11px 16px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    margin: 10px 0;
}

.add-skill-btn:hover, .add-hub-btn:hover {
    background-color: #45a049;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* CHECKBOXES */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.checkbox-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-item label {
    margin: 0;
    font-weight: normal;
    font-size: 13px;
}

/* REQUIRED AGREEMENTS SECTION */
.required-agreements {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.required-agreements h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a3a52;
    margin-bottom: 15px;
}

.required-agreements > p {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

.required-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.required-checkbox-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.required-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.required-checkbox-label {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.required-checkbox-label a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

.required-checkbox-label a:hover {
    text-decoration: underline;
}

/* RADIO GROUPS */
.radio-group {
    display: flex;
    gap: 25px;
    align-items: center;
}

.radio-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-item label {
    margin: 0;
    font-weight: normal;
    font-size: 13px;
}

/* BUTTONS */
.button-group {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

button[type="submit"], button[type="reset"] {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

button[type="submit"] {
    background-color: #4caf50;
    color: white;
}

button[type="submit"]:hover {
    background-color: #45a049;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

button[type="reset"] {
    background-color: #e0e0e0;
    color: #333;
}

button[type="reset"]:hover {
    background-color: #d0d0d0;
}

/* SUCCESS MESSAGE */
.success-message {
    display: none;
    padding: 15px;
    background-color: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    color: #2e7d32;
    font-weight: 600;
    font-size: 14px;
}

.success-message.show {
    display: block;
}

/* FOOTER */
/* footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
} */

.error-message {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .skill-row {
        grid-template-columns: 1fr;
    }
    .hub-row {
        grid-template-columns: 1fr;
    }
    
    .delete-skill-btn {
        width: 100%;
    }
    
    .application-container {
        padding: 25px 15px;
        margin: 0 auto 40px auto;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
.note-text {
  font-size: 12px; 
  color: #666;
   margin: 4px 0 0 0;
}
@media (min-width: 1440px) {
    .application-container {
        padding: 20px 10px;
        max-width: 60%;
    }
}
.privacy-component{
    margin-bottom: 20px;
}
#tooltip {
    display: none;
    position: fixed;
    background: #1a1a2e;
    color: #fff;
    padding: 8px 13px;
    border-radius: 7px;
    font-size: 12.5px;
    max-width: 260px;
    white-space: normal;
    line-height: 1.5;
    z-index: 99999;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    border-left: 3px solid #4f8ef7;
}
#tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 14px;
    border: 6px solid transparent;
    border-top-color: #1a1a2e;
}
.accord-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

/* ── Each Tile ── */
.accord-tile {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}
.accord-tile.unlocked {
    border-color: #4f8ef7;
}
.accord-tile.agreed {
    border-color: #22c55e;
}

/* ── Tile Header (clickable) ── */
.accord-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: #f8fafc;
    user-select: none;
    transition: background 0.2s;
}
.accord-header:hover { background: #f1f5f9; }

.accord-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Status badge on left */
.accord-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d9e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    flex-shrink: 0;
    transition: all 0.2s;
}
.accord-tile.unlocked .accord-status {
    border-color: #4f8ef7;
    color: #4f8ef7;
}
.accord-tile.agreed .accord-status {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.accord-title {
    font-size: 14px;
    font-weight: 600;
    color: #d32f2f;
}
.accord-subtitle {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Arrow icon */
.accord-arrow {
    font-size: 13px;
    color: #94a3b8;
    transition: transform 0.25s;
}
.accord-tile.open .accord-arrow {
    transform: rotate(180deg);
}

/* ── Tile Body (collapsible) ── */
.accord-body {
    display: none;
}
.accord-tile.open .accord-body {
   display: block;
}

.accord-body-inner {
    padding: 0 20px 20px;
}
.accord-privacy-title{
    font-size: 14px;
    font-weight: 600;
    color: #1a3a52;
}

/* ── Scroll Box ── */
.scroll-box {
    height: 160px;
    overflow-y: scroll;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    background: #f8fafc;
    font-size: 13px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 12px;
    position: relative;
    scroll-behavior: smooth;
}

/* Scroll hint */
.scroll-hint {
    text-align: center;
    font-size: 11.5px;
    color: #f59e0b;
    margin-bottom: 10px;
    transition: opacity 0.3s;
}
.scroll-hint.hidden { opacity: 0; pointer-events: none; }

/* ── Checkbox Row ── */
.agree-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}
.agree-row.active {
    border-color: #4f8ef7;
    background: #eff6ff;
}
.agree-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #4f8ef7;
    cursor: pointer;
}
.agree-row input[type="checkbox"]:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.agree-row label {
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
    cursor: pointer;
}
.tile-proxy-input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
}
.accord-tile.error {
    border: 2px solid #d32f2f !important;
}

.tile-error {
    display: none;
    color: #d32f2f;
    font-size: 12px;
    margin: -4px 0 8px 4px;
    font-weight: 500;
}

.tile-error.show {
    display: block;
}
.currency-input {
    position: relative;
}

.currency-input span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 600;
    pointer-events: none;
}

.currency-input input {
    padding-left: 35px;
    width: 100%;
}
.info-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
}

.info-icon-wrap .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 130%;
    left: 0;
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    width: 400px;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: 12px;
    transition: opacity 0.3s ease;
    z-index: 10;
}

/* Only triggers on icon hover, not the whole label row */
.info-icon-wrap:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}