
/* =========================================
   GENERAL STYLING
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f5e1 0%, #fff9e6 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(45, 80, 22, 0.15);
    overflow: hidden;
}

/* =========================================
   INSTITUTIONAL HEADER
   ========================================= */

.headercontainer {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    padding: 22px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-bottom: 5px solid #ffd700;
}

/* Kumasi Technical University - LEFT */

.institution {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.institution .logo {
    flex-shrink: 0;
}

.institution .logo img {
    display: block;
    width: 75px;
    height: 75px;
    max-width: 75px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 5px;
}

.institution-text {
    min-width: 0;
}

.institution-text h2 {
    color: #ffffff !important;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* GOLD DIVIDER */

.vertical-line {
    width: 3px;
    height: 70px;
    background: #ffd700;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Ghana R Users Community - RIGHT */

.collaborator {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
}

.collaboration-label {
    color: #ffd700;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
    margin: 0;
}

.collaborator-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    width: 100%;
}

.collaborator-content .logo {
    flex-shrink: 0;
}

.collaborator-content .logo img {
    display: block;
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    object-fit: contain;
    border-radius: 7px;
    background: white;
    padding: 4px;
}

.collaborator-content .text {
    flex: 1;
    min-width: 0;
}

.collaborator-content .text h2 {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    overflow-wrap: break-word;
}

/* =========================================
   FORM HEADINGS
   ========================================= */

h3 {
    text-align: center;
    color: #2d5016;
    font-size: 26px;
    padding: 30px 20px 10px;
    font-weight: 700;
}

.horizontal-line {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    margin: 10px 40px;
}

/* =========================================
   ERROR MESSAGES
   ========================================= */

.error {
    background: #ffe6e6;
    color: #c41e3a;
    padding: 15px 20px;
    margin: 20px 40px;
    border-radius: 10px;
    border-left: 5px solid #c41e3a;
    font-weight: 500;
}

/* =========================================
   FORM ELEMENTS
   ========================================= */

form {
    padding: 30px 40px 40px;
}

label {
    display: block;
    color: #2d5016;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 2px solid #d4e8c8;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafffe;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: #4a7c2c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(74, 124, 44, 0.1);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a7c2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* =========================================
   INFORMATION BOX
   ========================================= */

.info-box {
    background: linear-gradient(135deg, #f0f8e8 0%, #fffef0 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px solid #ffd700;
    display: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.info-box strong {
    color: #2d5016;
    font-weight: 700;
}

.info-box br {
    margin-bottom: 8px;
}

/* =========================================
   SUBMIT BUTTON
   ========================================= */

button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4a7c2c 0%, #2d5016 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.3);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.4);
    background: linear-gradient(135deg, #5da839 0%, #3a5e1f 100%);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* =========================================
   CAPTCHA
   ========================================= */

#captcha {
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 2px;
}

label strong {
    background: #ffd700;
    color: #2d5016;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 20px;
    letter-spacing: 4px;
    font-family: monospace;
    display: inline-block;
    margin-left: 10px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

/* =========================================
   HORIZONTAL RULES
   ========================================= */

hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4e8c8, transparent);
    margin: 25px 0;
}

hr[height="2px"] {
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    height: 3px;
}

/* =========================================
   FORM SECTIONS
   ========================================= */

.form-section {
    background: #f9fdf7;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #4a7c2c;
}

/* =========================================
   ADDITIONAL UX
   ========================================= */

input::placeholder {
    color: #a5c89a;
}

select option {
    padding: 10px;
}

/* =========================================
   TABLET RESPONSIVENESS
   ========================================= */

@media (max-width: 768px) {

    .container {
        border-radius: 0;
    }

    .headercontainer {
        flex-direction: column;
        padding: 20px 15px;
        gap: 12px;
        text-align: center;
    }

    .institution {
        justify-content: center;
        width: 100%;
    }

    .institution .logo img {
        width: 65px;
        height: 65px;
    }

    .institution-text h2 {
        font-size: 18px;
    }

    .vertical-line {
        width: 60px;
        height: 3px;
    }

    .collaborator {
        align-items: center;
        width: 100%;
    }

    .collaborator-content {
        justify-content: center;
        width: auto;
    }

    .collaborator-content .text h2 {
        font-size: 16px;
    }

    .collaboration-label {
        font-size: 10px;
    }

    h3 {
        font-size: 22px;
    }

    form {
        padding: 20px;
    }

    .horizontal-line {
        margin: 10px 20px;
    }

    .error {
        margin: 15px 20px;
    }
}

/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 380px) {

    .headercontainer {
        padding: 18px 10px;
    }

    .institution .logo img {
        width: 55px;
        height: 55px;
    }

    .institution-text h2 {
        font-size: 16px;
    }

    .collaborator-content .logo img {
        width: 42px !important;
        height: 42px !important;
        max-width: 42px !important;
    }

    .collaborator-content .text h2 {
        font-size: 14px;
    }

    .collaboration-label {
        font-size: 10px;
    }

    form {
        padding: 15px;
    }
}
