/* --- Modern Font & Body Styles --- */
        @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

        body {
            font-family: 'Roboto', sans-serif;
            background-color: #f4f7f6;
            color: #333;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            padding: 20px;
            box-sizing: border-box;
        }

        /* --- Main Container & Card Styles --- */
        .container {
            width: 100%;
            max-width: 700px;
            background: #ffffff;
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        h1 {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 25px;
            font-weight: 700;
        }

        h2 {
            font-weight: 500;
            color: #34495e;
            margin-bottom: 10px;
            border-bottom: 2px solid #ecf0f1;
            padding-bottom: 10px;
        }

        p {
            color: #7f8c8d;
            line-height: 1.6;
        }

        /* --- Form Elements & Button Styles --- */
        .form-group {
            margin-bottom: 30px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #2c3e50;
        }

        select, input[type="file"] {
            width: 100%;
            padding: 12px;
            border: 1px solid #bdc3c7;
            border-radius: 6px;
            font-size: 1em;
            background-color: #f8f9f9;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        select:focus, input[type="file"]:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        }

        input[type="file"]::file-selector-button {
            padding: 10px 15px;
            border: none;
            background-color: #3498db;
            color: white;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.2s ease;
            margin-right: 10px;
        }

        input[type="file"]::file-selector-button:hover {
            background-color: #2980b9;
        }

        button[type="submit"] {
            width: 100%;
            padding: 12px 20px;
            background-image: linear-gradient(to right, #2980b9, #3498db);
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 1.1em;
            font-weight: 500;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            margin-top: 15px;
        }

        button[type="submit"]:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
        }

        /* --- Option Card Styles --- */
        .calculation-options {
            border-top: 1px solid #ecf0f1;
            padding-top: 20px;
            margin-top: 30px;
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .option {
            background: #fdfdfd;
            border: 1px solid #ecf0f1;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 25px;
            transition: box-shadow 0.3s ease, transform 0.3s ease;
        }

        .option:last-child {
            margin-bottom: 25;
        }

        .option:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }

        /* --- Disabled State --- */
        .calculation-options.disabled {
            opacity: 0.4;
            pointer-events: none;
            transform: translateY(10px);
        }

        /* --- Flash Message Styles --- */
        .flash {
            padding: 15px;
            margin-bottom: 20px;
            border-radius: 6px;
            border-left: 5px solid;
            font-weight: 500;
        }
        .flash.error { background-color: #f8d7da; color: #a7212e; border-color: #e74c3c; }
        .flash.success { background-color: #d4edda; color: #155724; border-color: #2ecc71; }
        .flash.warning { background-color: #fff3cd; color: #856404; border-color: #f1c40f; }