/* ------------------------------
   GLOBAL PAGE STYLING
--------------------------------*/
body {
    font-family: Arial, sans-serif;
    background: #021526;
    color: white;
    margin: 0;
    padding: 40px 0;
}

/* ------------------------------
   FORM WRAPPER
--------------------------------*/
.form-wrapper {
    width: 80%;
    margin: auto;
    background: rgba(0, 50, 80, 0.5);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid cyan;
    backdrop-filter: blur(6px);
    box-shadow: 0px 0px 10px cyan;
}

/* ------------------------------
   HEADINGS
--------------------------------*/
h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
}

h2 {
    text-align: center;
    color: #00eaff;
    margin-top: 40px;
}

hr {
    border: 1px solid cyan;
    margin: 30px 0;
}

/* ------------------------------
   GRID FORM (4-column layout)
--------------------------------*/
.grid-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 30px;
    margin-top: 25px;
}

/* full-width elements */
.full {
    grid-column: span 4;
}

/* ------------------------------
   FORM GROUP
--------------------------------*/
.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 14px;
    margin-bottom: 6px;
    opacity: 0.9;
}

/* ------------------------------
   INPUTS / SELECTS
--------------------------------*/
input, select {
    padding: 12px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #00eaff;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    outline: none;
    transition: 0.2s;
}

input:focus, select:focus {
    border-color: #00ffea;
    background: rgba(0, 255, 255, 0.15);
}

/* ------------------------------
   BUTTON
--------------------------------*/
.btn {
    background: linear-gradient(90deg, #00eaff, #0aff7a);
    padding: 14px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    text-align: center;
    transition: 0.25s;
    color: black;
}

.btn:hover {
    filter: brightness(1.2);
}
/* Dropdown options visible fix */
select {
    color: #ffffff;              /* text color when closed */
    background: rgba(255,255,255,0.1);
}

select option {
    background: #ffffff !important;  /* dropdown panel background */
    color: #000000 !important;       /* dropdown text */
}

select:focus option {
    background: #ffffff !important;
    color: #000000 !important;
}
/* ------------------------------
   RESPONSE BOX
--------------------------------*/
.response-box {
    grid-column: span 4;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00eaff;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.response-box strong {
    color: #00eaff;
}

.response-box .status-text.success {
    color: #0aff7a; /* green */
    font-weight: bold;
}

.response-box .status-text.error {
    color: #ff4d4d; /* red */
    font-weight: bold;
}

.response-box details summary {
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.response-box pre {
    background: rgba(0,0,0,0.2);
    color: #ffffff;
    padding: 10px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}
