
* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Verdana, 'Courier New', Geneva, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100%;
}

/* Main content expands to fill available space */
main {
    flex: 1;
    padding: 0px 40px 0px 40px;
    display: block;
    flex-wrap: wrap;
    align-items: flex-start;
}

.background-box {
    border: 1px solid;
    border-radius: 15px;
    height: auto;
    width: auto;
    padding: 25px;
}

/* ==========================================
   FAQ PAGE
   ========================================== */

.intro-faq {
    padding: 25px;
}

.faq-accordion {
    width: 100%;
    margin-top: 25px;
}

.faq-item {
    border-top: 1px solid #d0d0d0;
}

.faq-item:last-child {
    border-bottom: 1px solid #d0d0d0;
}

.faq-item summary {
    position: relative;
    padding: 18px 40px 18px 5px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: #222;
}

/* Remove default markers */

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    content: "";
}

/* Custom expand/collapse indicator */

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: "−";
}

/* Answer area */

.faq-answer {
    padding: 0 20px 20px 5px;
    line-height: 1.7;
}

.faq-answer p {
    margin: 0 0 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 10px 0 15px;
    padding-left: 25px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* Keyboard accessibility */

.faq-item summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* Mobile */

@media (max-width: 600px) {
    .intro-faq {
        padding: 18px;
    }

    .faq-item summary {
        padding-right: 35px;
    }

    .faq-answer {
        padding-right: 5px;
    }
}


/* =========================================================
   END OF FAQ PAGE
   ========================================================= */
   
   
/* ==========================================
   CONTACT PAGE
   ========================================== */

.intro-contact {
    padding: 25px;
}

.intro-contact h3 {
    margin-top: 30px;
    margin-bottom: 12px;
}

.intro-contact p {
    line-height: 1.7;
    margin-bottom: 18px;
}

.intro-contact ul {
    margin: 10px 0 20px;
    padding-left: 25px;
}

.intro-contact li {
    line-height: 1.7;
    margin-bottom: 8px;
}

.intro-contact a {
    overflow-wrap: anywhere;
}

.intro-contact p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .intro-contact {
        padding: 18px;
    }
}

/* ==========================================
   END OF CONTACT PAGE
   ========================================== */

.hero {
    display: flex;
    flex-direction: column;
    border-bottom-right-radius: 50px 10px;
    border-bottom-left-radius: 50px 10px;
}

/* Footer remains below the main content */
.site-footer {
    flex-shrink: 0;
}

.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 18px;
}

.site-logo {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
}

main {
    border-top: 4px groove;
}

.site-header nav,
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0px 40px;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.hero {
    padding: 90px 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.property-search {
    display: flex;
    gap: 12px;
    max-width: 700px;
    margin: 30px auto 0;
    flex-wrap: wrap;
    text-align: left;
}

.property-search label {
    width: 100%;
}

.property-search input {
    flex: 1;
    min-width: 220px;
    padding: 14px;
    border-radius: 50px;
}

.property-search button {
    padding: 14px 24px;
    cursor: pointer;
    border-radius: 50px;
}

.site-footer {
    margin-top: 70px;
    padding: 30px 0;
}


/* ==========================================
   ABOUT PAGE
   ========================================== */

.intro-about {
    padding: 25px;
}

.intro-about h3 {
    margin-top: 30px;
    margin-bottom: 12px;
}

.intro-about p {
    line-height: 1.7;
    margin-bottom: 18px;
}

.intro-about p:last-child {
    margin-bottom: 0;
}

.intro-about a {
    overflow-wrap: anywhere;
}

/* ==========================================
   END OF ABOUT PAGE
   ========================================== */

/* =========================================
   LANDLORD REGISTRATION
   ========================================= */

.registration-section {
    width: 100%;
    padding: 48px 20px 64px;
}

.registration-section .container {
    max-width: 900px;
    margin: 0 auto;
}

.registration-header {
    margin-bottom: 30px;
    text-align: center;
}

.registration-header h1 {
    margin-bottom: 12px;
}

.registration-header p {
    line-height: 1.6;
}

.registration-card {
    padding: 32px;
    border-radius: 12px;
}

.registration-card fieldset {
    min-width: 0;
    margin: 0 0 32px;
    padding: 0;
    border: none;
}

.registration-card legend {
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 6px;
    font: inherit;
    box-sizing: border-box;
}

.form-group small {
    font-size: 0.85rem;
    line-height: 1.5;
}

.registration-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.registration-notice {
    margin: 0;
    line-height: 1.6;
    text-align: center;
}

.registration-actions .cta-button {
    width: 100%;
    max-width: 350px;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.registration-login {
    margin: 0;
    text-align: center;
}

/* =========================================
   EBD OF LANDLORD REGISTRATION
   ========================================= */
   
   
/* =========================================
   REGISTRATION FEEDBACK
   ========================================= */

.registration-success,
.registration-errors {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid;
    border-radius: 8px;
}

.registration-success h2,
.registration-errors h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.registration-success p {
    margin: 0;
    line-height: 1.6;
}

.registration-errors ul {
    margin: 0;
    padding-left: 22px;
}

.registration-errors li {
    margin-bottom: 6px;
}

/* =========================================
   END OF REGISTRATION FEEDBACK
   ========================================= */

