    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        margin: 0;
        padding: 20px;
        background-color: #eef2f7;
        color: #333;
        line-height: 1.6;
    }

    .container {
        max-width: 800px;
        margin: 20px auto;
        background-color: #fff;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid #dcdcdc;
    }

    h1, h2, h3 {
        color: #0056b3;
        margin-top: 0;
    }

    h1 {
        text-align: center;
        margin-bottom: 20px;
        color: #004085;
    }

    h2 {
        border-bottom: 2px solid #eef2f7;
        padding-bottom: 10px;
        margin-bottom: 20px;
        color: #0056b3;
    }

    h3 {
        margin-top: 25px;
        margin-bottom: 10px;
        color: #495057;
    }

    label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
        color: #555;
    }

    input[type="number"], select {
        width: calc(100% - 22px);
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-sizing: border-box;
        font-size: 1em;
        transition: border-color 0.3s ease-in-out;
    }

    input[type="number"]:focus, select:focus {
        border-color: #007bff;
        outline: none;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
    }

    input[type="submit"] {
        display: block;
        width: 100%;
        background-color: #28a745;
        color: white;
        padding: 12px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1.1em;
        margin-top: 20px;
        transition: background-color 0.3s ease-in-out;
    }

    input[type="submit"]:hover {
        background-color: #218838;
    }

    .results {
        margin-top: 30px;
        padding: 20px;
        background-color: #d4edda;
        border: 1px solid #c3e6cb;
        border-radius: 8px;
        color: #155724;
    }

    .results h2 {
        color: #155724;
        border-bottom-color: #c3e6cb;
        margin-top: 0;
    }

    .results p {
        margin: 10px 0;
        font-size: 1.1em;
        display: flex;
        justify-content: space-between;
        padding-bottom: 5px;
        border-bottom: 1px dashed #c3e6cb;
    }
    .results p:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .results p strong {
        color: #004085;
        font-weight: bold;
    }

    .form-group {
        margin-bottom: 20px;
        padding: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        background-color: #f8f9fa;
    }

    fieldset {
        border: 1px solid #d6d8db;
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 8px;
        background-color: #fff;
    }

    legend {
        font-size: 1.2em;
        font-weight: bold;
        color: #0056b3;
        padding: 0 10px;
        border-bottom: none;
    }

    hr {
        margin: 25px 0;
        border: 0;
        border-top: 1px solid #ddd;
    }

    small {
        display: block;
        margin-top: 5px;
        color: #666;
        font-size: 0.9em;
    }

    .results .final-result {
        font-size: 1.4em;
        font-weight: bold;
        color: #004085;
        border-top: 2px solid #155724;
        padding-top: 15px;
        margin-top: 15px;
    }

    .results .final-result strong {
        color: #218838;
    }

    #coupler_legs_div {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px dashed #ccc;
    }
    .results button {
        background-color: #007bff;
        color: white;
        border: none;
        padding: 5px 10px;
        border-radius: 4px;
        cursor: pointer;
        margin-left: 10px;
        font-size: 0.9em;
        transition: background-color 0.3s ease;
    }

    .results button:hover {
        background-color: #0056b3;
    }
            .footer {
            max-width: 800px;
            margin: 40px auto 20px;
            padding: 20px;
            color: #666;
            font-size: 0.9em;
            text-align: center;
            border-top: 1px solid #eee;
        }
        
        .footer a {
            color: #0056b3;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer a:hover {
            color: #003366;
            text-decoration: underline;
        }
        
        .footer p {
            margin: 8px 0;
        }